Need help with jupyterlab-sidecar?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

jupyter-widgets
162 Stars 31 Forks BSD 3-Clause "New" or "Revised" License 35 Commits 23 Opened issues

Description

A sidecar output widget for JupyterLab

Services available

!
?

Need anything else?

Contributors list

Sidecar

Build Status codecov

A sidecar output widget for JupyterLab

Installation

pip install sidecar

or

conda install sidecar

If you use JupyterLab <=2:

bash
jupyter labextension install @jupyter-widgets/jupyterlab-manager
jupyter labextension install @jupyter-widgets/jupyterlab-sidecar

Usage

The sidecar widget is used as a context manager, just like ipywidgets' output widget.

from sidecar import Sidecar
from ipywidgets import IntSlider

sc = Sidecar(title='Sidecar Output') sl = IntSlider(description='Some slider') with sc: display(sl)

When a single output is displayed in a Sidecar, it is allowed to occupy all of the vertical space available. If more content is displayed, the natural height is used instead.

sidecar

Development

# Create a new conda environment
conda create -n jupyterlab-sidecar -c conda-forge jupyterlab ipywidgets nodejs

Activate the conda environment

conda activate jupyterlab-sidecar

Install dependencies

jlpm

Build Typescript source

jlpm build

Link your development version of the extension with JupyterLab

jupyter labextension link .

Rebuild Typescript source after making changes

jlpm build

Rebuild JupyterLab after making any changes

jupyter lab build

Install the sidecar Python package

python -m pip install -e .

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.