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.

IPython line magic can be split across lines

See original GitHub issue

IPython 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:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mwoutscommented, Apr 2, 2019

Hello James, this is coming with version 1.1.0. A release candidate that includes the fix is available with

pip install jupytext==1.1.0rc0
0reactions
mwoutscommented, Apr 2, 2019

You’re welcome James - Thanks for the compliment!

Read more comments on GitHub >

github_iconTop 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 >

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