plotly / dash

Data Apps & Dashboards for Python. No JavaScript Required.
https://plotly.com/dash
MIT License
21.25k stars 2.05k forks source link

Exception: Access Denied #2861

Closed cchen0630 closed 2 months ago

cchen0630 commented 4 months ago

I recently upgraded my dash version from 2.8.1 to 2.14.2. It gave me this exception and stops me from access the internal sever.

image

image

I realized this issue might come with the function jupyter_dash.run_app(). However, my code didn't define or use anything related with jupyter. Is there anyway I can disable or avoid this function so the exception won't be raised?

Thank you.

T4rk1n commented 4 months ago

The condition for running in jupyter is running in Ipython which seems to be the case here, but it need to run inside a jupyter notebook or jupyterlab not just the ipython prompt.

cchen0630 commented 4 months ago

The condition for running in jupyter is running in Ipython which seems to be the case here, but it need to run inside a jupyter notebook or jupyterlab not just the ipython prompt.

Thank you for your comment. I‘m running in Jupyter notebook now, however, it still gives me the same exception message. Does this new function require online communication with any external website? if so, how can I edit the code if I have to run it in an offline environment?

image

image

T4rk1n commented 4 months ago

I think you may need to set the jupyter_server_url to run on a hosted notebook, you can find the documentation for running with jupyter here: https://dash.plotly.com/dash-in-jupyter

gvwilson commented 2 months ago

Hi - we are tidying up stale issues and PRs in Plotly's public repositories so that we can focus on things that are most important to our community. If this issue is still a concern, please add a comment letting us know what recent version of our software you've checked it with so that I can reopen it and add it to our backlog. (Please note that we will give priority to reports that include a short reproducible example.) If you'd like to submit a PR, we'd be happy to prioritize a review, and if it's a request for tech support, please post in our community forum. Thank you - @gvwilson