file extension convertor from .py to .ipynb
OTHER License
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.
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.
.py
files to .ipynb
files.py
files after conversionTo start using notebook-ed
, follow these steps:
Clone the Repository
git clone https://github.com/w3cdpass/notebook-ed.git
cd notebook-ed
Create a Virtual Environment
python -m venv notebook_ed_env
Activate the Virtual Environment
notebook_ed_env\Scripts\activate
source notebook_ed_env/bin/activate
Install Dependencies
pip install -r requirements.txt
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
We welcome contributions to notebook-ed
! If you have ideas for improvements or have found bugs, please follow these steps to contribute:
Fork the Repository
Click the "Fork" button at the top right corner of this repository page.
Clone Your Fork
git clone https://github.com/<your-username>/notebook-ed.git
cd notebook-ed
Create a New Branch
git checkout -b your-branch-name
Make Your Changes
Make your changes to the codebase and ensure that all tests pass.
Commit Your Changes
git add .
git commit -m "Description of your changes"
Push to Your Fork
git push origin your-branch-name
Create a Pull Request
Go to the original repository and create a pull request with a description of your changes.
For any queries, feel free to contact me at [email protected].