I tried changing the code to fig.show() but still facing the same issue. Below is the complete code for your reference.
import plotly as py
import plotly.graph_objs as go
import ipywidgets as widgets
import numpy as np
import pandas as pd
py.offline.init_notebook_mode(connected = True)
@ayandeephalder Or you donāt have plotly version 4.1.0 or your package installation is not complete, because
with this code like your, for me it displays the resulting figure:
hi @Worst_experience_eve
Iām sorry you had a bad experience so far. I just recreated the code in your image and ran it on Pycharm and on Jupyter Notebook.
In both cases it worked for me.
Could it be that it doesnāt recognize that youāve installed Pandas or Plotly Express? Can you share any other clues with us? Maybe we can solve it together.
I have tried for hours on end to make anything show with pyplot in jupyter notebook. I have used matplotlib for years but I see little to no logic with Plotly and canāt make it show graphic even just copy pasting from this thread or the official documentation.
I have gone through several threads showing extra imports to fix it, but no luck.
No error messages or any other info, absolutely nothing (visibly) happens when I run cells for Pyplot calls.