question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot make multi-line code blocks in ipython

See original GitHub issue

I just did a pip install ipython while teaching a class today and typed an if statement and then hit enter after the first line and the code executed.

This seems like a bug.

I did a pip install ipython==6.5.0 and hitting Enter in a code block properly showed me the next indented line to type out.

I’m on Ubuntu 18.04 running ipython within tmux, though I doubt tmux is the issue here.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:12
  • Comments:27 (16 by maintainers)

github_iconTop GitHub Comments

12reactions
bxsxcommented, Oct 2, 2018

Actually, I got a regression with my fix. Fixing it now.

The PR #11354 is updated now.

2reactions
Carreaucommented, Oct 1, 2018

iPython

Upper case I please, we don’t want trouble with apple.

You don’t need a few examples

Well, no I don’t need, but I want multiple example. I can reproduce and have an idea of how to fix it, but having multiple case help me be sure that I’m no hitting an edge case. I do have a biased view on how to use IPython, so example from other are helpful.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Forcing IPython to execute the current multiline code block
Instead, try hitting Shift + Enter mid line, which should execute the current cell regardless of cursor position. This has always worked for...
Read more >
Fenced Code Blocks — Python-Markdown 3.4.1 documentation
The Fenced Code Blocks extension adds a secondary way to define code blocks, ... Therefore, they cannot be nested inside lists or blockquotes....
Read more >
Jupyter Notebook - Markdown Cells - Tutorialspoint
Markdown cell displays text which can be formatted using markdown language. In order to enter a text which should not be treated as...
Read more >
A Qt Console for IPython
If you want to force multiline input, hit Ctrl-Enter at the end of the first line instead of Enter , and it will...
Read more >
Multiline comments don't actually exist in Python - Codecademy
As part of the Python course it is taught that in order to do a multiline comment one should use """triple quotes""" ....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found