Skip to main content

notebookr

PyPI version Python Downloads

A simple tool to set up development environments for Jupyter notebooks. My motivation: people frequently email or file-share Jupyter notebooks, which generally short-circuits my normal flow for receiving, working with, and managing code (usually via GitHub). So, whatʻs the fastest, easiest way to get these loose notebooks into flow?

Using notebookr you can typically cut the setup process down to a very short workflow:

  1. Receive and save Python notebook (.ipynb) file into a working directory
  2. Open a terminal
  3. notebookr SomeNotebook.ipynb

The package runs and creates a project folder with your notebook. At this point, if you are using an IDE, you might:

  1. code some-notebook
  2. source .venv/bin/activate ... or:
  3. .venv\Scripts\activate # windows
  • or - if you are using Jupyter
  1. jupyter lab --notebook-dir=some-notebook

Notebookr will give you

  • A git-initialized, uv-initialized project folder with a name based on the notebook name
  • The uv virtual environment at .venv/, ready to be activated.
  • A simple .gitignore with common patterns, including especially that .venv pattern
  • A pyproject.toml or requirements.txt (optional) file with dependencies read in from the notebook.
  • A notebooks/ folder with your notebook safely tucked away.

Installation

pip install notebookr

or

uv add notebookr

Usage

notebookr path/to/your/notebook.ipynb
notebookr --with_py path/to/your/notebook.ipynb # Also creates a python copy of the notebook

This will:

  1. Create a virtual environment
  2. Generate requirements.txt based on imports in your notebook
  3. Create a .gitignore
  4. Initialize a git repository
  5. Install required packages

Version

0.1.1 added --with_py

Release files for notebookr 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for notebookr 0.1.5
File Size Uploaded
notebookr-0.1.5.tar.gz 5.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for notebookr 0.1.5
File Interpreter ABI Platform
notebookr-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 10.1 kB

Release files / notebookr-0.1.5.tar.gz

Download URL notebookr-0.1.5.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
6666d7599f0b27f0aefd0828de4c2f00c0d88a9da044a09081e571f586671282
BLAKE2b-256 checksum
How to use checksums
24729fbdd8932f59862ea84dfa6722d76243c44febd0c5ecadeb988248059fbd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.8

Release files / notebookr-0.1.5-py3-none-any.whl

Download URL notebookr-0.1.5-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3f95aa847bbccfc54eef514ff015f7ba335671bbf04e037036367b69a29c072f
BLAKE2b-256 checksum
How to use checksums
6f9d757c3b9c59c999ac08da2c09f35153845655e25fda3ee93cf2db74911591
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.8

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page