Skip to main content

A tool to convert .py files to .ipynb

Project description

notebook-ed

A tool to convert .py files to .ipynb files and delete the original .py files. This tool makes it easy to convert Python scripts into Jupyter Notebooks for easy sharing and collaboration.

If you find notebook-ed useful, please consider giving it a star on GitHub! Your support helps me to continue developing and improving this tool.

Python PyPI version GitHub stars

Project Insights

notebook-ed is designed to streamline the process of converting Python scripts into Jupyter Notebooks. It is particularly useful for educators, data scientists, and developers who need to present their Python code in a more interactive format.

Features

  • Converts .py files to .ipynb files
  • Deletes the original .py files after conversion
  • Processes directories to batch convert multiple files
  • Simple command-line interface for ease of use

How to Start with Source Code

To start using notebook-ed, follow these steps:

  1. Clone the Repository

    git clone https://github.com/w3cdpass/notebook-ed.git
    cd notebook-ed
    
  2. Create a Virtual Environment

    python -m venv notebook_ed_env
    
  3. Activate the Virtual Environment

    • On Windows:
      notebook_ed_env\Scripts\activate
      
    • On macOS/Linux:
      source notebook_ed_env/bin/activate
      
  4. Install Dependencies

    pip install -r requirements.txt
    
  5. Run the Script

    notebook-ed -r <root_directory>  # To convert all .py files in a directory
    notebook-ed -f <file_path>       # To convert a single .py file
    

How to Contribute

We welcome contributions to notebook-ed! If you have ideas for improvements or have found bugs, please follow these steps to contribute:

  1. Fork the Repository

    Click the "Fork" button at the top right corner of this repository page.

  2. Clone Your Fork

    git clone https://github.com/<your-username>/notebook-ed.git
    cd notebook-ed
    
  3. Create a New Branch

    git checkout -b your-branch-name
    
  4. Make Your Changes

    Make your changes to the codebase and ensure that all tests pass.

  5. Commit Your Changes

    git add .
    git commit -m "Description of your changes"
    
  6. Push to Your Fork

    git push origin your-branch-name
    
  7. Create a Pull Request

    Go to the original repository and create a pull request with a description of your changes.

Contact

For any queries, feel free to contact me at kupasva663@gmail.com.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

notebook_ed-0.1.4.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

notebook_ed-0.1.4-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file notebook_ed-0.1.4.tar.gz.

File metadata

  • Download URL: notebook_ed-0.1.4.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for notebook_ed-0.1.4.tar.gz
Algorithm Hash digest
SHA256 79124d985c5afd61a9b905bcadab92190db8c03a86c59674ec562723000a9b2f
MD5 99f2c78a1b7505d02f91c155a9a24309
BLAKE2b-256 1df7e08b26c0bf2cf422e0f9acf1f236717af3431ede7242aeb23b4bdff5f17d

See more details on using hashes here.

File details

Details for the file notebook_ed-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: notebook_ed-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for notebook_ed-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 06da5e211a5acee098f4e0dcb0d75bbdc4118b4b59654817a718bff748c2a642
MD5 f39a194afdfce31f38af8c75f094b1e2
BLAKE2b-256 6a854fcc47c2d0c454a045c8a619143b8e711057f2fafbee2bb54d807b4a0d7a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page