Scientific Programming
153 subscribers
158 photos
30 videos
138 files
442 links
Tutorials and applications from scientific programming

https://github.com/Ziaeemehr
Download Telegram
#j2p: A simple Python package to convert Jupyter notebooks to Python scripts.

If you find yourself needing to convert a notebook to a Python script, you likely turn to nbconvert. However, this often results in a script with annoying cell separators. Consequently, you may try manually removing these extra lines to focus solely on the code itself.
This tiny package provide a cleaner solution

## Installation


pip install ju2py


## Usage


j2p example.ipynb [output.py]

output name is optional.

P.S:
There is already a package (not by me) for the reverse action

pip install p2j
p2j example.py


GitHub: https://github.com/Ziaeemehr/j2p
👍3