Convert Jupyter Notebooks into organized Python packages with just a few clicks!
Try it now at: https://notebook-converter.streamlit.app/
- Convert multiple
.ipynb
files simultaneously - Extract code into clean Python scripts
- Preserve cell outputs in organized text files
- Save generated images from notebook execution
- Get detailed statistics about your notebooks
- Download everything in a structured ZIP package
For each processed notebook, you'll receive:
<notebook_name>.py
- Consolidated Python code<notebook_name>_outputs.txt
- Cell outputs and execution results<notebook_name>_image_1.png
, etc. - Generated images (if any)
- Python 3.7+
- Streamlit
- Clone this repository:
git clone https://github.com/JuanLara18/notebook-converter.git
cd notebook-converter
- Install dependencies:
pip install -r requirements.txt
- Run the application:
streamlit run app.py
- The code extraction concatenates all cells into a single Python file
- IPython magic commands (e.g.,
%matplotlib inline
) are included as-is - HTML and JavaScript outputs from cells are not processed
- All files are processed in-memory for the web version
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
This project is licensed under the MIT License - see the LICENSE file for details.