Skip to content
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

topic_model.visualize_topics() requires nbformat>=4.2.0 but it is not installed #116

Open
GwydionJon opened this issue Jun 21, 2023 · 0 comments
Assignees

Comments

@GwydionJon
Copy link
Collaborator

when running topic_model.visualize_topics() on a fresh environment with only pip install ammico this package seems to be missing


---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
File [~/.local/lib/python3.10/site-packages/IPython/core/formatters.py:921](https://file+.vscode-resource.vscode-cdn.net/home/gwydion/SSC/missinformation/AMMICO/notebooks/~/.local/lib/python3.10/site-packages/IPython/core/formatters.py:921), in IPythonDisplayFormatter.__call__(self, obj)
    919 method = get_real_method(obj, self.print_method)
    920 if method is not None:
--> 921     method()
    922     return True

File [~/anaconda3/envs/test_ammico/lib/python3.10/site-packages/plotly/basedatatypes.py:834](https://file+.vscode-resource.vscode-cdn.net/home/gwydion/SSC/missinformation/AMMICO/notebooks/~/anaconda3/envs/test_ammico/lib/python3.10/site-packages/plotly/basedatatypes.py:834), in BaseFigure._ipython_display_(self)
    831 import plotly.io as pio
    833 if pio.renderers.render_on_display and pio.renderers.default:
--> 834     pio.show(self)
    835 else:
    836     print(repr(self))

File [~/anaconda3/envs/test_ammico/lib/python3.10/site-packages/plotly/io/_renderers.py:396](https://file+.vscode-resource.vscode-cdn.net/home/gwydion/SSC/missinformation/AMMICO/notebooks/~/anaconda3/envs/test_ammico/lib/python3.10/site-packages/plotly/io/_renderers.py:396), in show(fig, renderer, validate, **kwargs)
    391         raise ValueError(
    392             "Mime type rendering requires ipython but it is not installed"
    393         )
    395     if not nbformat or Version(nbformat.__version__) < Version("4.2.0"):
--> 396         raise ValueError(
    397             "Mime type rendering requires nbformat>=4.2.0 but it is not installed"
    398         )
    400     ipython_display.display(bundle, raw=True)
    402 # external renderers

ValueError: Mime type rendering requires nbformat>=4.2.0 but it is not installed
@iulusoy iulusoy self-assigned this Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants