Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

dash on Jupyterlab running in docker #39

@zain910128

Description

@zain910128

I'm running the python data science notebook docker image.

I tried enabling the dash extension from jupyterlab's extension manager, which did not work for me.
I also tried following the instructions at: https://github.com/plotly/jupyterlab-dash#installation
That also did not work.

Can someone please guide me on how to set it up in the environment I am using ?

The code I've run is:

!pip install jupyterlab_dash
!jupyter labextension install [email protected]
!jupyter labextension install jupyterlab-dash

# eveyrthing installs successfully

import jupyterlab_dash
import dash
import dash_html_components as html
viewer = jupyterlab_dash.AppViewer()
app = dash.Dash(__name__)
app.layout = html.Div('Hello World')
viewer.show(app)

Output:

Exception in thread Thread-105:
Traceback (most recent call last):
  File "/opt/conda/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/opt/conda/lib/python3.7/threading.py", line 1166, in run
    self.function(*self.args, **self.kwargs)
  File "/opt/conda/lib/python3.7/site-packages/jupyterlab_dash/__init__.py", line 71, in _perform_show
    """)
OSError: 
Unable to communicate with the jupyterlab-dash JupyterLab extension.
Is this Python kernel running inside JupyterLab with the jupyterlab-dash
extension installed?

You can install the extension with:

$ jupyter labextension install jupyterlab-dash

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions