Skip to main content

jupyter-neuroglancer

Simple Jupyter (and jupyter-server-proxy) integration with neuroglancer.

Pops up a neuroglancer viewer in a split pane in JupyterLab (via jupyterlab-sidecar) so you can more easily see real-time live visualizations driven by your python code.

When running on a remote JupyterHub, the viewer is automatically (and securely) proxied through jupyter-server-proxy so users get the exact same experience on theier local machine as well as a JupyterHub.

Installation

jupyter-neuroglancer is available on PyPI.

pip install jupyter-neuroglancer

Usage

jupyter_neuroglancer provides a display_in_sidecar function that accepts a regular neuroglancer Viewer object. You don't have to modify your neuroglancer code in any way!

import neuroglancer
from jupyter_neuroglancer import SidecarViewer

# Create a neuroglancer Viewer instance. This controls the visualization
viewer = neuroglancer.Viewer()

# Display the neuroglancer in JupyterLab as a sidecar
display_in_sidecar(viewer)

Using on a JupyterHub

When using this on a JupyterHub, you need jupyter-server-proxy installed in the image you are using. Since neuroglancer uses eventstreams for communication, you need it to be a version of jupyter-server-proxy that has this PR included. Until that PR is merged and released, you can install that with:

pip install --upgrade git+https://github.com/ganisback/jupyter-server-proxy@support-stream

Other than that, you do not have to modify your code in any way.

Metadata

Release files for jupyter-neuroglancer 0.2

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

Source distribution (sdist)

Source distribution for jupyter-neuroglancer 0.2
File Size Uploaded
jupyter_neuroglancer-0.2.tar.gz 3.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jupyter-neuroglancer 0.2
File Interpreter ABI Platform
jupyter_neuroglancer-0.2-py3-none-any.whl Python 3 none any Details

Total release size: 7.7 kB

Release files / jupyter_neuroglancer-0.2.tar.gz

Download URL jupyter_neuroglancer-0.2.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2a44c78f96b5773d6f72553774f36cb2987dbbd0e667b78238b5ac6b87a44ef0
BLAKE2b-256 checksum
How to use checksums
3b97442960565904c9c96000ade7a469d53079e5b91740109fddf66a8e6734ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Release files / jupyter_neuroglancer-0.2-py3-none-any.whl

Download URL jupyter_neuroglancer-0.2-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
60ca868113628a66401f33d911d23e2eafc3e5e2e515d181c2e6b43f3613ad25
BLAKE2b-256 checksum
How to use checksums
349483241d8c249113c6abae09b04b3fdd88e25160185180ab5d6d2e16fb31d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Release history Release notifications | RSS feed

This release

0.2 This release

2 release files

0.1

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