py2nb icon indicating copy to clipboard operation
py2nb copied to clipboard

[This is no longer maintained] Python script to Jupyter notebook converter

Results 6 py2nb issues
Sort by recently updated
recently updated
newest added

Just hacked this together for [Spyder](https://github.com/spyder-ide) - shall I make a PR? Is this project still active? Inside `def convert_toplevel_docstring(tokens)`: ``` elif token.type == tokenize.COMMENT: text = token.string if text.startswith('#%%'):...

I am getting this error message File "/usr/local/lib/python2.7/dist-packages/py2nb/tools.py", line 7, in from .converter import convert File "/usr/local/lib/python2.7/dist-packages/py2nb/converter.py", line 3, in from IPython.nbformat.v3 import nbpy ImportError: No module named v3

Because it would be nice to `pip install py2nb`.

/home/user/.local/lib/python2.7/site-packages/IPython/nbformat.py:13: ShimWarning: The `IPython.nbformat` package has been deprecated since IPython 4.0. You should import from nbformat instead. "You should import from nbformat instead.", ShimWarning)

Fixes ``` .../IPython/nbformat.py:13: ShimWarning: The `IPython.nbformat` package has been deprecated since IPython 4.0. You should import from nbformat instead. ``` and ``` DEPRECATION: Uninstalling a distutils installed project (py2nb) has...

- jupyter/nbconvert#452 "Conversion back from executable script to ipynb notebook" From https://github.com/jupyter/nbconvert/issues/452#issuecomment-279593218 : > - https://github.com/sklam/py2nb/blob/master/py2nb/reader.py > - [ ] ENH: read(filename): split on ``# In[\d*]:`` > - [ ]...