1
I have an interactive graph in python. The code below works in Azure Notebook, but I had to migrate my code to Jupyterlab and it shows the following error:
Attributeerror: module 'plotly.validators.layout.template.data' has no attribute 'Isosurfacesvalidator'
Follows the code.
import pandas as pd
import plotly.plotly as py
import plotly.offline as py
import plotly.graph_objs as go
py.init_notebook_mode(connected=True)
trace = go.Bar(x = problema.index,
y = problema)
data = [trace]
layout = go.Layout(title='Ranking de Problema',
yaxis={'title':'Quantidade'},
xaxis={'title': 'Problema'})
fig = go.Figure(data=data, layout=layout)
py.iplot(fig)
I never used Jyperlab. What would it be? It has documentation of it?
– Diego Souza
I didn’t know Azure had an online service for this. I’ve already registered and I’m using it. What a mass!
– Diego Souza
Yes, you do. I’m Following the Link: https://jupyterlab.readthedocs.io/en/stable/getting_started/overview.html Azure does!!! and it’s excellent. It’s possible to access your code from anywhere. I love it in it!
– Beatriz Benz
Ahhh. It’s Jupyterlab. You wrote Jyper, so I couldn’t find it when I Googled it. It’s the newest version of Jupyternotebook.
– Diego Souza
So, is the Python version the same one you used in Azure? Otherwise, which line gives this error?
– Diego Souza
hahaaha corrected! Thank you!! ^^"
– Beatriz Benz
In the upper right corner of the document you can see the Python version to run this notebook.
– Diego Souza
How do I see this? Note: I have just started learning how to program and am starting with python! ^^"
– Beatriz Benz
In Jupyterlab I think it is version 3.7.2.
– Beatriz Benz
Got it. So, I believe the library
ploty
is not installed in your project. By the terminal or CMD log in to your project folder and type:pip install ploty
. But for this you need to have Python installed on the PC and also thepip
for installation of dependencies.– Diego Souza
Another question, is your code whole in question? Why did I turn here and see that
problema
there is no.– Diego Souza
through Ananconda’s CMD I can do that??
– Beatriz Benz
Yeah, it’s to get.
– Diego Souza
did this and gave the error below: Collecting ploty Could not find a version that satisfies the requirement ploty (from versions: ) No matching Distribution found for ploty
– Beatriz Benz
For those who do not know have also the colab has even GPU free. I tried to run there, but the problem was the
problema
that is not in the code. :-)– Sidon
How nice of Sidon!!
– Beatriz Benz
Thank you very much, good to know!!! = D
– Beatriz Benz