Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IPython line magic can be split across lines #209

Closed
jamesmyatt opened this issue Mar 28, 2019 · 5 comments
Closed

IPython line magic can be split across lines #209

jamesmyatt opened this issue Mar 28, 2019 · 5 comments
Milestone

Comments

@jamesmyatt
Copy link

IPython line magic can be split across lines (ipython/ipython#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)

@mwouts
Copy link
Owner

mwouts commented Mar 28, 2019

Thanks James for reporting this... Good parsing exercise, isn't it? I'll have a look.

@jamesmyatt
Copy link
Author

No problem. I'm not actually using it and I don't think it's common, so it's not high priority, but certainly something for the backlog.

@mwouts mwouts added this to the 1.1.0 milestone Apr 2, 2019
@mwouts mwouts mentioned this issue Apr 2, 2019
@mwouts mwouts closed this as completed in fdde61d Apr 2, 2019
@mwouts
Copy link
Owner

mwouts commented 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

@jamesmyatt
Copy link
Author

Thanks. I'm very impressed with your ability to turn these requests round.

@mwouts
Copy link
Owner

mwouts commented Apr 2, 2019

You're welcome James - Thanks for the compliment!

@mwouts mwouts mentioned this issue Apr 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants