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

Request: Line breaks in line magic command #2164

Closed
tkf opened this issue Jul 18, 2012 · 3 comments
Closed

Request: Line breaks in line magic command #2164

tkf opened this issue Jul 18, 2012 · 3 comments
Milestone

Comments

@tkf
Copy link
Contributor

tkf commented Jul 18, 2012

It would be nice if IPython's line magic command can have line breaks, like python or shell script. For example, I want something like the this in notebook:

%run myscript.py \
  --output very/very/long/path/ \
  --parameter_alpha ... \
  --parameter_beta ... \
  --parameter_gamma ... \
  ...

Will it over complicate the current magic command system?

@fperez
Copy link
Member

fperez commented Jul 20, 2012

It's certainly a very reasonable request. Implementation-wise it's a bit delicate because the syntax handling code isn't totally trivial, but it's not impossible either. And at least this is the kind of thing that's relatively easy to carpet bomb with tests so that one can be reasonably confident that an implementation is solid.

@takluyver
Copy link
Member

Heads up: this is possible with PR #2447.

@takluyver
Copy link
Member

This should now be working, so I'll close this issue.

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

3 participants