Skip to main content

observable_jupyter

Embed cells from Observable notebooks into Jupyter notebooks.

View demo notebook on Colab

The following ways to view the demo notebook won't work until we make this repository public:

To install the library, import the embed function, and embed the "graphic" cell from this notebook:

!pip install observable_jupyter
from observable_jupyter import embed
embed('@mbostock/epicyclic-gearing', cells=['graphic'], inputs={'speed': 0.2})

The simplest way to use embed() is to render an entire Observable notebook:

embed('@d3/gallery')

You may want to swap in your own data into a D3 chart:

import this
text = ''.join(this.d.get(l, l) for l in this.s)
embed('@d3/word-cloud', cells=['chart'], inputs={'source': text})

With multiple cells, you can embed interactive charts!

embed(
    '@observablehq/visualize-a-data-frame-with-observable-in-jupyter,
    cells=['vegaPetalsWidget', 'viewof sepalLengthLimits', 'viewof sepalWidthLimits'],
)

Release files for observable-jupyter 0.1.7

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

Source distribution (sdist)

Source distribution for observable-jupyter 0.1.7
File Size Uploaded
observable_jupyter-0.1.7.tar.gz 168.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for observable-jupyter 0.1.7
File Interpreter ABI Platform
observable_jupyter-0.1.7-py3-none-any.whl Python 3 none any Details

Total release size: 192.8 kB

Release files / observable_jupyter-0.1.7.tar.gz

Download URL observable_jupyter-0.1.7.tar.gz
Size 168.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e06f59c5f9104492fe0b4bed6e57820703355c59e5e9a02c3454e4c8f3d6d57e
BLAKE2b-256 checksum
How to use checksums
b2a67c99a9750ac65b27de788d68986c6f90855721e78f3e06c8384b92b91b50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

Release files / observable_jupyter-0.1.7-py3-none-any.whl

Download URL observable_jupyter-0.1.7-py3-none-any.whl
Size 24.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
623bff6cc736bfddbc6fc9c85c647eaa5adb606e07a25370718aa7b03f5313f0
BLAKE2b-256 checksum
How to use checksums
7df617951432a9b929637d86ce10868fadd506c25a0bd6f86b4098f7ec3e6092
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

Release history Release notifications | RSS feed

0.1.14

2 release files

0.1.13

1 release file

0.1.12

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.8

2 release files

This release

0.1.7 This release

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