Cannot make multi-line code blocks in ipython
See original GitHub issueI 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:
- Created 5 years ago
- Reactions:12
- Comments:27 (16 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The PR #11354 is updated now.
Upper case I please, we don’t want trouble with apple.
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.