Skip to main content

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:

  1. Make sure all your changes are committed to git
  2. 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
  1. 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:

  1. Check for uncommitted changes
  2. Bump the version in setup.py
  3. Build the package (sdist and wheel)
  4. Upload to PyPI (unless --no-upload is specified)
  5. Commit the version change and create a git tag

Project details


Release history Release notifications | RSS feed

This version

0.0.1

Download files

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

Source Distribution

tsilva_notebook_utils-0.0.1.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

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

tsilva_notebook_utils-0.0.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

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

Hashes for tsilva_notebook_utils-0.0.1.tar.gz
Algorithm Hash digest
SHA256 320e25f7a94beecfbd7798df4459a52a6d2ed64e1dbff352cdb2749c4ee4e838
MD5 700d946933c1e885bd4f15a85f236424
BLAKE2b-256 d27f44ef617bb02861ce006b7d84e05cf1a506c1d934b567e1765d7ce842e11a

See more details on using hashes here.

File details

Details for the file tsilva_notebook_utils-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for tsilva_notebook_utils-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 08d07bbda3e948c3b8c1f10e0d8d1927ab1ec4781458538fcbc46ca89cad2fd1
MD5 b42fb7048c9ba5ccdcf8a504b553d5fd
BLAKE2b-256 45c47b5afdbb28b97b1589f726918402f5c377446ad17e1d3978e522bd1dcb3c

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