-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when trying to run a dashboard in jupyterHub #124
Comments
<ContextVar name='callback_context' at 0x7f78465b2f90>
when trying to run a dashboard in jupyterHub?
@LucaYoy Please could you give some more information about exactly when this occurs and what your notebook contains? |
I essentially have a data frame named my code cell containing the code is: page = vm.Page(
title = 'Distributions before normalization',
components = [
vm.Graph(id='#1 dist',figure=px.histogram(data,x='#1')),
vm.Graph(id='#2 dist',figure=px.histogram(data,x='#2')),
vm.Graph(id='#3 dist',figure=px.histogram(data,x='#3')),
vm.Graph(id='#4 dist',figure=px.histogram(data,x='#4'))],
)
dashboard = vm.Dashboard(pages=[page])
Vizro().build(dashboard).run(jupyter_mode="inline") where "#1" is the first feature etc. when i run this i get the error described above. |
Hey @LucaYoy , could you let me know what
|
Hi @huong-li-nguyen , im running vizro 0.1.4 and dash 2.13.0 I already tried 1. and 3. and it still gives me that error. I have also made a new notebook and run 2. and sadly I get same error. My team and i use this platform which has jupyter and and other solutions build into it like airflow etc. maybe that is the problem not sure. |
Hey @LucaYoy, interesting - could you tell us more about the platform? The other thing, could you try if a standard Dash app works fine in the environment? Here is an example, that you could try out:
|
@huong-li-nguyen the dash code above doesn't throw any error however the webpage displayed in jupyter has written Ye as i said its a virtual machine pretty much. The only thing is that we cant make an external server because it might get blocked through proxy, so only way for the dashboard to be seen is in the output cell in the notebook, however thats when i get the error |
Interesting, could you update the run call to the following:
Does any of that work? |
@huong-li-nguyen, tried for both the dash app and vizro
For vizro when trying both things i still get the error |
Hey @LucaYoy , thanks for getting back! If this is the case, I don't think it's related to Vizro but some difficulties accessing the port on the platform. Could you first try running this at the beginning of the notebook:
I was also just scanning through the Dash support channels and this might help if the above doesn't work: plotly/dash#2629 If the issue still can't be resolved, then I would ask you to reach out to the Dash support channels directly as they will be able to help you with any issue related to I hope one of the fixes work 🤞 |
Ye, when running the above i get error |
Hey @LucaYoy , there seems to be an open issue on I would suggest following the discussion there and eventually following up with them, as the current issue seems to be a JupyterDash one. |
ye i guess it all boils down to some dash bug since vizro is build with dash ? From what i see the issues above are not really resolved yet :( probably also the security measures my company have in place dont help much since it blocks so many things |
Yes, exactly - vizro is build on top of dash. I try to keep an eye open on the dash issues as well, and hopefully they'll be able to fix it soon 🤞 |
@LucaYoy I think we might have been able to solve this - see #175 (comment). Do let me know if either of the fixes given there work for you,. |
Does anyone know anything about the error
<ContextVar name='callback_context' at 0x7f78465b2f90>
when trying to run a dashboard in jupyterHub?Originally posted by @LucaYoy in #109 (comment)
The text was updated successfully, but these errors were encountered: