This release is a pre-release and may not be stable for production use.
Jupyter SMART on FHIR
Prototype extensions for loading credentials in Jupyter contexts via SMART on FHIR.
This package contains two implementations:
server_extension: a Jupyter server extension that acts as public client for a SMART server.hub_service: a JupyterHub service that acts as confidential client for a SMART server and performs asymmetric authentication.
Check the READMEs in the example folders for more information.
This package is very much a work in progress.
Server Extension
The Server extension is enabled by default on install. It registers the following handlers:
{base_url}/smart-on-fhir/launch- the launch URL to provide{base_url}/smart-on-fhir/login(an intermediate implementation-detail handler that may go away){base_url}/smart-on-fhir/callback- the OAuth callback you'll want to register
When deployed in JupyterHub, register the URLs https://jupyterhub.example.org/hub/user-redirect/smart-on-fhir/launch as the launch URL and https://jupyterhub.example.org/hub/user-redirect/smart-on-fhir/callback as the oauth callback URL.
After SMART launch, the token info will be stored in jupyter_runtime_dir() / "smart_token.json" (also available to notebooks as $SMART_TOKEN_FILE), and in $SMART_TOKEN.
$SMART_TOKEN will only be available to notebooks started after
Currently, only one token is stored at a time, so if there are multiple smart launches to a single notebook server, only the latest will be persisted.
Configure SMARTExtensionApp in jupyter_server_config.py:
c.SMARTExtensionApp.scopes = ["openid", "fhirUser", "launch", "patient/*.*"]
c.SMARTExtensionApp.client_id = "your-client-id"
see sourcecode in server_extension.py for now for more options.
JupyterHub Service
The JupyterHub service is a bare proof of concept which completes the SMART flow and fetches some sample data, it is not useful yet.
Release files for jupyter-smart-on-fhir 0.1.0a4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| jupyter_smart_on_fhir-0.1.0a4.tar.gz | 20.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| jupyter_smart_on_fhir-0.1.0a4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.5 kB
Release files / jupyter_smart_on_fhir-0.1.0a4.tar.gz
| Download URL | jupyter_smart_on_fhir-0.1.0a4.tar.gz |
|---|---|
| Size | 20.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4fbfd289222401f56b60f3c9b877dd28f1ecfff768f96c95c1a7c99110e025e3
|
|
BLAKE2b-256 checksum How to use checksums |
6fa9caf84337bb52da6250811b3ddf71c46ad5c485631627b748280ea492eace
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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 Jul 2, 2026.
Transparency logRelease files / jupyter_smart_on_fhir-0.1.0a4-py3-none-any.whl
| Download URL | jupyter_smart_on_fhir-0.1.0a4-py3-none-any.whl |
|---|---|
| Size | 11.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2310a02fa28e7fcb4faa853eb1208d52211585adeae483370a218bcf2c304ba1
|
|
BLAKE2b-256 checksum How to use checksums |
b8990eddb7a359e960e3b995fe461e737ca62473c87c9d6ba16dfd0013539bc6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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 Jul 2, 2026.
Transparency log