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

Cannot handle magic commands #27

Closed
lihongchun2007 opened this issue Jan 6, 2017 · 1 comment
Closed

Cannot handle magic commands #27

lihongchun2007 opened this issue Jan 6, 2017 · 1 comment

Comments

@lihongchun2007
Copy link

When cells in a notebook contain magic commands, ipynb cannot import the notebook.

For example, a cell in a notebook contains %matplotlib inline. To import this notebook, ipynb throws an exception, SyntaxError: invalid syntax.

@Carreau
Copy link
Member

Carreau commented Jan 6, 2017

It is a know issue see #6 and it is partly on purpose as magics need IPython to be runnign to work which might not be the case.

All magics are often just syntactic sugar around pure python code, so when that's the case you can replace them by their equivalent.

Closing as duplicate of #6

@Carreau Carreau closed this as completed Jan 6, 2017
tonyfast added a commit to deathbeds/ipynb that referenced this issue Jan 2, 2020
* Pin wheel, twine, and setuptools versions to allow a markdown description on the warehouse
* Rewrite the unittests as pytests and add a watcher for improved development in lab.
* yaml/pyyaml#126 install yaml from github to pass 3.7dev
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