You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.
I'm also struggling to get Jupyter Dash working consistently from within a docker container setup. Note Plotly and other libraries/extensions work perfectly so i'm not sure why you are having issues there.
Is there any guide / recommended approach for using jupyter dash in a docker environment?
If it matters i'm running on a synology nas.
My dockerfile is:
FROM jupyter/minimal-notebook
COPY ./requirements.txt /requirements.txt
RUN pip install -r /requirements.txt
RUN jupyter lab build -y && jupyter lab clean -y
I have a reverse proxy to access this via a subdomain - python.domain.com.
An example dash app is:
from jupyter_dash import JupyterDash
#import dash
import dash_auth
import dash_html_components as html
app = JupyterDash(__name__)
valid_logins = {'user': 'test1234'}
auth = dash_auth.BasicAuth(app, valid_logins)
app.layout = html.Div(['Hello World'])
app.run_server()
I'd been experimenting with different combinations to try to get it working.
If I start the dash by specifying the host - app.run_server(host='0.0.0.0') - it sometimes works and I can access the dash by going to the ip address of my nas and port 8050. However sometimes i get an error saying the port is in use, despite it not being in use.
I'd like to get it working within the jupyter environment, however i get a similar error (127.0.0.1 not found).
If anyone has any tips or suggestions it would be highly appreciated.
When I tried to use JupyterDash from the JupyterLab (3.0.10) docker container, I got the error that the webserver is not responding:
My docker file:
Docker build command:
Docker run command:
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:
or
The text was updated successfully, but these errors were encountered: