-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Add informative error message when FigureWidget not available due to missing dependencies #1111
Comments
Hi @vlizanae , The Thanks for reporting this because it reminds me that it would be nice to do something more user friendly when someone tries to access a Alright if I change the title of this issue to "Raise informative error if FigureWidget dependencies are not installed"? |
sure, thank you! |
I was thinking about this a bit and I don't see a quick & straightforward solution. This is the way try:
import ipywidgets
from distutils.version import LooseVersion
if LooseVersion(ipywidgets.__version__) >= LooseVersion('7.0.0'):
from ._figurewidget import FigureWidget
del LooseVersion
del ipywidgets
except ImportError:
pass The only options I see:
Other ideas? |
Fix poliastro#629. For a better error message when ipywidgets is missing, see plotly/plotly.py#1111
Fix poliastro#629. For a better error message when ipywidgets is missing, see plotly/plotly.py#1111
Fix poliastro#629. For a better error message when ipywidgets is missing, see plotly/plotly.py#1111
Closed by #2445 |
I'm running an alpine python3 container and for some reason FigureWidget is not available. Jupyter is not installed because it's meant to be a Dash app, are there any dependencies I might have overlooked?

The text was updated successfully, but these errors were encountered: