A web application built with Streamlit that allows users to easily convert Jupyter Notebook (.ipynb) files to Python (.py) script files.
- User-friendly Interface: Clean and intuitive Streamlit UI
- Multiple Input Methods:
- Upload local .ipynb files directly
- Convert from URLs
- Batch Processing: Convert multiple files at once
- Download Options:
- Direct download for single files
- ZIP archive for multiple files
- Error Handling: Clear feedback on conversion success or failure
- Python 3.7 or higher
- Streamlit
- ipynb-py-convert
- requests
-
Clone this repository:
git clone https://github.com/yourusername/ipynb-to-py-converter.git cd ipynb-to-py-converter
-
Install the required packages:
pip install -r requirements.txt
-
Run the Streamlit app:
streamlit run ipynb_converter_app.py
-
Open your web browser and navigate to:
http://localhost:8501
-
Use either the "File Upload" or "URL Input" tab to convert your Jupyter Notebook files
This application uses the ipynb-py-convert
library to perform the conversion from .ipynb to .py format. The conversion preserves:
- Code cells
- Markdown cells (as comments)
- Cell execution order
ipynb-to-py-converter/
├── ipynb_converter_app.py # Main Streamlit application
├── requirements.txt # Python dependencies
└── README.md # Project documentation
This application can be deployed to Streamlit Sharing, Heroku, or any other platform that supports Streamlit applications.
This project is licensed under the MIT License - see the LICENSE file for details.
- ipynb-py-convert for the conversion tool
- Streamlit for the web application framework