Skip to content

A Python-based web application for converting Jupyter Notebook (.ipynb) files to Python (.py) scripts with a user-friendly interface. Built with Flask, it supports batch conversions and preserves code structure for seamless transitions.

License

Notifications You must be signed in to change notification settings

rohanmistry231/ipynb-to-py-converter-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jupyter Notebook to Python Converter

A web application built with Streamlit that allows users to easily convert Jupyter Notebook (.ipynb) files to Python (.py) script files.

Features

  • 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

Requirements

  • Python 3.7 or higher
  • Streamlit
  • ipynb-py-convert
  • requests

Installation

  1. Clone this repository:

    git clone https://github.com/yourusername/ipynb-to-py-converter.git
    cd ipynb-to-py-converter
    
  2. Install the required packages:

    pip install -r requirements.txt
    

Usage

  1. Run the Streamlit app:

    streamlit run ipynb_converter_app.py
    
  2. Open your web browser and navigate to:

    http://localhost:8501
    
  3. Use either the "File Upload" or "URL Input" tab to convert your Jupyter Notebook files

How It Works

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

Project Structure

ipynb-to-py-converter/
├── ipynb_converter_app.py  # Main Streamlit application
├── requirements.txt        # Python dependencies
└── README.md               # Project documentation

Deployment

This application can be deployed to Streamlit Sharing, Heroku, or any other platform that supports Streamlit applications.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements

About

A Python-based web application for converting Jupyter Notebook (.ipynb) files to Python (.py) scripts with a user-friendly interface. Built with Flask, it supports batch conversions and preserves code structure for seamless transitions.

Topics

Resources

License

Stars

Watchers

Forks

Languages