-
Notifications
You must be signed in to change notification settings - Fork 407
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
Code Export missing dependencies #247
Comments
I changed the |
Now I've tried:
of all the available renderers:
I've tried a few and 'browser' works in a new browser window but it does not have the map tiles I selected in the dtale maps view, instead it uses a very low-resolution monochrome map of coastlines only. |
My environment:
|
From this: I'm just not sure why the exact same plot that I generate in the dtale charts window doesn't get produced. |
@Gdsimms i’m really sorry about that. The import you’re looking for is: import plotly.graph_objects as go Then you’ll use go.Layout Just curious, which version of D-Tale are you running? I may have fixed this in the latest version 1.13.0, and if I havent i’ll have a new version out with the fix later this week. Once again, my apologies |
Sorry, just read the rest of your posts and noticed you solved that part. Sorry it looks like there is some more code i need to include in order to display these charts in a notebook: from plotly.offline import iplot, init_notebook_mode init_notebook_mode(connected=True) “chart” being the chart created by the code |
Thank you for the prompt reply. I'm on a different machine tonight and I may not be able to test the suggested fix until Monday. |
Added in v1.14.0, @Gdsimms let me know how it goes 🤞 |
I notice your screenshot is jupyterHub. I've never used that. I'm in JupyterLab 2.2.5. Are there particular widgets or extensions I might need? The plots display fine in the dtale browser tabs that pop up. |
@Gdsimms I'm sorry you're still having issues, but not to worry we'll figure this out! 👍. So I'm wondering if you adding those couple lines I mentioned earlier in our thread (but neglected to add to my code export because it didn't appear I needed it when I ran my code):
I've added a file containing the current list of packages I have installed in my virtual environment I'm using w/ JupyterHub |
I have only used dtale interactively until today when I decided to try exporting a chart (map) to my jupyter lab notebook to render the figure there.
I made the map chart look like I wanted, hit the code export button, pasted the copied code, made sure the dataframe I was using was copied to one named "df", and executed the cell in Jupyter Lab. The error I get is:
With regard to dependencies, my own code has:
I did not specifically import the
go.
package, but it looks from searching that it may be related to Plotly....?Anyway, I'd sure like to know what dependency to add in order to allow this code to run.
The text was updated successfully, but these errors were encountered: