Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Can’t run JupyterDash or Plotly from JupyterLab (3.0.10) with docker container. #57

Open
@madpower2000

Description

@madpower2000

When I tried to use JupyterDash from the JupyterLab (3.0.10) docker container, I got the error that the webserver is not responding:

This page isn’t working
127.0.0.1 didn’t send any data.
ERR_EMPTY_RESPONSE

My docker file:

FROM continuumio/miniconda3:latest   

RUN apt update && apt upgrade -y
RUN apt install curl -y

RUN curl -fsSL https://deb.nodesource.com/setup_15.x | bash -
RUN apt-get install -y nodejs

RUN conda update conda
RUN conda install -c conda-forge jupyterlab
RUN conda install -c conda-forge -c plotly jupyter-dash
RUN jupyter lab build

RUN mkdir /opt/notebooks
WORKDIR  /opt/notebooks

EXPOSE 8888 8050

CMD [ "jupyter", "lab", "--notebook-dir=/opt/notebooks", "--ip='*'", "--port=8888", "--no-browser", "--allow-root" ]

Docker build command:

docker build -t demo/dash .

Docker run command:

docker run -p 8888:8888 -p 8050:8050 -v c:\\docker\\data:/opt/notebooks demo/dash

I got the error described above, trying to run getting_started.ipynb from this repo.

Should I call JupyterDash.infer_jupyter_proxy_config() when I run notebook in container?

Another issue with this setup. If I try to use plotly, it's plots nothing, without error, just blank area after running cell.
My code snippets:

import plotly.graph_objects as go
fig = go.Figure(data=go.Bar(y=[2, 3, 1]))
fig.show()

or

import plotly.express as px
df = px.data.iris()
fig = px.scatter(df, x="sepal_width", y="sepal_length", color="species")
fig.show()

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