Skip to main content

Hugo Jupyter

https://img.shields.io/pypi/v/hugo_jupyter.svg https://img.shields.io/github/license/mashape/apistatus.svg

Publish Jupyter notebooks with Hugo.

Installation

pip install hugo_jupyter

Usage

example_movie.gif
cd root_of_hugo_project
hugo_jupyter --init

This will create a notebooks directory at the root of your hugo project if it doesn’t yet exist. Any jupyter notebooks you want rendered should go in the notebooks directory.

In addition, a fabfile.py script will be written at the project root.

fab serve

Automatically initializes your jupyter server, hugo server, and watchdog to re-render your jupyter notebooks to markdown for hugo as you create and edit them.

Jupyter Notebooks

Any notebooks that you create will need front matter for hugo to know how to render the content.

Once you edit the name of the jupyter notebook to something other than Untitled*.ipynb, hugo-jupyter will automatically edit the notebook’s metadata to enable rendering with jupyter. You may need to reload the notebook page to see the changes in the metadata.

There will also be a hugo-jupyter dictionary in the notebook’s metadata with a render-to field automatically set to content/post/. You can edit this field to edit where the notebook’s markdown will be rendered to.

Any other fields you add to front-matter (author, tags, thumbnail, …) are passed through to the rendered post.

Plots and other image outputs are written to static/notebooks/<slug>/ and linked from the post as /notebooks/<slug>/....

Hugo’s default markdown renderer drops raw HTML, which hides HTML outputs such as pandas tables. To show them, add this to your hugo config:

[markup.goldmark.renderer]
  unsafe = true

hugo_jupyter --init copies fabfile.py into your project, so re-run it after upgrading hugo_jupyter to pick up fixes.

http://i.imgur.com/ynQs0gB.png http://i.imgur.com/Jcjwc0y.png

Metadata

Release files for hugo_jupyter 1.0.3

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

Source distribution (sdist)

Source distribution for hugo_jupyter 1.0.3
File Size Uploaded
hugo_jupyter-1.0.3.tar.gz 17.7 kB Details

Built distribution (wheel)

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

Total release size: 27.0 kB

Release files / hugo_jupyter-1.0.3.tar.gz

Download URL hugo_jupyter-1.0.3.tar.gz
Size 17.7 kB
Tags Source
SHA-256 checksum
How to use checksums
97ed179db88ec04b74c2caace627dc5cd33313306faa4f3dfc1a3ba0a2ab3dbc
BLAKE2b-256 checksum
How to use checksums
2113462bbb17ee764a30230a35a09174470152bde3797b4a3f7cefd863d4bcec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / hugo_jupyter-1.0.3-py3-none-any.whl

Download URL hugo_jupyter-1.0.3-py3-none-any.whl
Size 9.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2f7e1046322539875b7099219dbba64ca1fd683c800b55b3f787d86714ba5f58
BLAKE2b-256 checksum
How to use checksums
b769a3a83602b0a94bea6ee2c4119fb3ed0260a9da7796a2b7befab5a8c51b79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

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