ipython/ipynb

Cannot handle magic commands

lihongchun2007 opened this issue · 1 comments

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.

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