Utility functions for Jupyter/Colab notebooks
Project description
tsilva-notebook-utils
Utility functions for Jupyter notebooks.
Installation
git clone https://github.com/tsilva/tsilva-notebook-utils.git
cd tsilva-notebook-utils
curl -L https://gist.githubusercontent.com/tsilva/258374c1ba2296d8ba22fffbf640f183/raw/venv-install.sh -o install.sh && chmod +x install.sh && ./install.sh
Usage
from tsilva_notebook_utils import render_video
# Use the functions as needed
Publish
pip install build twine
python -m build
python -m twine upload dist/*
Publishing
This package uses a script to automate the publishing process to PyPI. The script handles version bumping, building, and uploading the package.
Prerequisites
Ensure you have the necessary tools installed:
pip install twine build wheel
Also make sure you have configured PyPI credentials in your ~/.pypirc file or through environment variables.
Publishing a New Release
To publish a new version:
- Make sure all your changes are committed to git
- Run the publish script:
# For a patch release (0.1.7 -> 0.1.8)
python publish.py
# For a minor release (0.1.7 -> 0.2.0)
python publish.py --bump minor
# For a major release (0.1.7 -> 1.0.0)
python publish.py --bump major
- Push the changes and tags to GitHub:
git push && git push --tags
Options
The publish script supports the following options:
--bump {patch,minor,major}: Specifies the version increment type (default: patch)--no-upload: Builds the package but skips uploading to PyPI
Example
# Build a minor release but don't publish yet
python publish.py --bump minor --no-upload
The script will:
- Check for uncommitted changes
- Bump the version in setup.py
- Build the package (sdist and wheel)
- Upload to PyPI (unless --no-upload is specified)
- Commit the version change and create a git tag
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tsilva_notebook_utils-0.0.1.tar.gz.
File metadata
- Download URL: tsilva_notebook_utils-0.0.1.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
320e25f7a94beecfbd7798df4459a52a6d2ed64e1dbff352cdb2749c4ee4e838
|
|
| MD5 |
700d946933c1e885bd4f15a85f236424
|
|
| BLAKE2b-256 |
d27f44ef617bb02861ce006b7d84e05cf1a506c1d934b567e1765d7ce842e11a
|
File details
Details for the file tsilva_notebook_utils-0.0.1-py3-none-any.whl.
File metadata
- Download URL: tsilva_notebook_utils-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08d07bbda3e948c3b8c1f10e0d8d1927ab1ec4781458538fcbc46ca89cad2fd1
|
|
| MD5 |
b42fb7048c9ba5ccdcf8a504b553d5fd
|
|
| BLAKE2b-256 |
45c47b5afdbb28b97b1589f726918402f5c377446ad17e1d3978e522bd1dcb3c
|