Skip to main content

Epic jupyter — Conveniences for working in Jupyter Notebook or Ipython

Epic-jupyter CI

What is it?

The epic-jupyter Python library provides several utilities tailored to run under Jupyter environments, and to help in writing libraries that adapt nicely to the environment they run in and its capabilities.

Main modules

epic.jupyter.ipython

Allows safe discovery of the current environment.

  • get_ipython() gets the IPython manager if it is available
  • is_ipython() tells you whether you're in an IPython-based environment
  • is_jupyter_notebook() tells you specifically whether you're running in a Jupyter kernel

epic.jupyter.display

Provides functions related to displaying content.

  • display_if_ipython(...) allows for safe displaying of objects, with optional graceful degradation to printing
  • markdown("# hey!") displays preformatted markdown content
  • side_by_side(...) displays arbitrary objects in a side-by-side table (and also in one-after-the-other columns)

epic.jupyter.initialization

Provides the function event_register_once(event, callback, ...) which registers an IPython event and removes it after it has triggered for the first time. This is intended to trigger initialization of internal structures upon some first time event.

epic.jupyter.interpolate

Provides the IPython magic %interpolate line and cell magic. This magic is a debug helper: use it to simulate IPython's variable interpolation mechanism and review the results.

Load this extension by calling %loadext epic.jupyter.interpolate.

You can also load this and all future extenstions by calling %loadext epic.jupyter.

epic.jupyter.nbcode

Use the function use_notebook_code('path/to/source.py') to start working with "notebook code" files.

Notebook code files are python files that are loaded and then reloaded (using exec) whenever they change.

These files should help maintaining separation of concerns. When a significant amount of relatively generic code is developed for the purposes of a notebook, keeping it in an adjacent file keeps the notebook itself focused on the research narrative. The automatic reload mechanism in turn frees the user from having to go back and run random code cells whenever some change is made to the underlying code.

Ultimately, any useful code should make its way into a general purpose library. During that time when its scope is limited to a specific notebook - notebook code files are here for you.

Metadata

Release files for epic-jupyter 1.1.1

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

Source distribution (sdist)

Source distribution for epic-jupyter 1.1.1
File Size Uploaded
epic_jupyter-1.1.1.tar.gz 6.4 kB Details

Release files / epic_jupyter-1.1.1.tar.gz

Download URL epic_jupyter-1.1.1.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e3a7e9cac49d6432a44b8d5ed9f450da5aacb4a00182fad4bb654b5802cc47ce
BLAKE2b-256 checksum
How to use checksums
bf4cee30c0b5b1d509467ae8176ccc4535771caeb5982d18f3a86418cc42545e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

1.1.1 This release

1 release file

1.1.0

1 release file

1.0.5

1 release file

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