IPython line magic can be split across lines
See original GitHub issueIPython line magic can be split across lines (https://github.com/ipython/ipython/issues/2164/).
So the following should be handled correctly.
%load_ext watermark
%watermark -u -n -t -z \
-p jupytext -v
and should print something like:
last updated: Thu Mar 28 2019 15:11:29 GMT Standard Time
CPython 3.7.3
IPython 7.4.0
jupytext 1.0.5
However, the percent representation is
# %load_ext watermark
# %watermark -u -n -t -z \
-p jupytext -v
which is invalid. (I haven’t actually checked, TBH)
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Split IPython Magic Shell Multiple Lines - Stack Overflow
I am trying to run a very long shell command in IPython using the ! operator. How do I split the command onto...
Read more >Built-in magic commands — IPython 8.7.0 documentation
From the first line of 8 sessions ago, to the fifth line of 6 sessions ago. Multiple ranges can be entered, separated by...
Read more >IPython Magic Commands | Python Data Science Handbook
These magic commands are designed to succinctly solve various common problems in standard data analysis. Magic commands come in two flavors: line magics,...
Read more >IPython 3.2.1 documentation
Magic command system IPython will treat any line whose first character is a % as a special call to a 'magic' function. These...
Read more >How to Effortlessly Optimize Your Jupyter Notebook | by Anne ...
Split Cells Notebook — Enables split cells in Jupyter notebooks. ... One simple line of IPython magic will give you double resolution plot ......
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 FreeTop 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
Top GitHub Comments
Hello James, this is coming with version 1.1.0. A release candidate that includes the fix is available with
You’re welcome James - Thanks for the compliment!