Skip to main content

Please Run IPython Notebook in the Current Environment with Stdout & Stderr

Project description

Princess is a small module to run a Jupyter notebook containing Python code, with two specific conditions:

  • The notebook runs in the current Python environment (the one used to load Princess), regardless of the kernel name in its metadata.

  • Text output from the notebook is displayed directly in your terminal - or wherever you redirect it - so you can follow the progress of the notebook.

Usage:

python -m princess Notebook.ipynb

Options:

  • --save and --save-as Result.ipynb to save the notebook after running.

  • --discard-on-error cancels --save[-as] if an error occurs.

  • --run-before before.py runs the code from the Python file in the kernel, before running the notebook. This can be used to set up things like logging to behave differently from when the notebook is run interactively.

  • --on-error-resume-next ignores errors from running notebook code and continues with the next cell. This is usually not a good idea.

PRINCESS: Please Run IPython Notebook in the Current Environment with Stdout and Stderr

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

princess-0.6.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

princess-0.6-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file princess-0.6.tar.gz.

File metadata

  • Download URL: princess-0.6.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.28.1

File hashes

Hashes for princess-0.6.tar.gz
Algorithm Hash digest
SHA256 23d076b9d5a17ba61c38cf46da26fe6fa6805ab2c36957ceaf89526e2aaf4cbe
MD5 cc1949db5d033cd7da2abbc29f356112
BLAKE2b-256 82110087e68b68bce1ba2ffe2d3b1de3149b8d76dbf51518fa29f9d61488ae0e

See more details on using hashes here.

File details

Details for the file princess-0.6-py3-none-any.whl.

File metadata

  • Download URL: princess-0.6-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.28.1

File hashes

Hashes for princess-0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 105894220aaccb574e148809e5e70d95d14054dbac313df5643dbb9643d66852
MD5 01acca8395448d5c645e116ee99f7e67
BLAKE2b-256 9479b32cdfaf9c707abda9ae07a608b566ee50b675b6d90e46ccfd471dfba25a

See more details on using hashes here.

Supported by

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