question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to view Plotly Graphs

See original GitHub issue

Issue Type: Bug

Before one of the updates, I was able to view Plotly graphs on the interactive window. However, now when I run the codes, nothing shows up.

import plotly.express as px
px.histogram([1,2,2,3,3,3,4,4,5])

Extension version: 2020.9.111407 VS Code version: Code 1.49.1 (58bb7b2331731bf72587010e943852e13e6fd3cf, 2020-09-16T23:21:17.533Z) OS version: Darwin x64 19.6.0

System Info
Item Value
CPUs Intel® Core™ i5-8259U CPU @ 2.30GHz (8 x 2300)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 2, 4, 3
Memory (System) 8.00GB (0.19GB free)
Process Argv –crash-reporter-id 1c10e725-cce8-4b0e-a802-f154460bc76e
Screen Reader no
VM 0%

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
DonJayamannecommented, Sep 30, 2020

Please could you let me know whant you get when you run the following in a notebook cell

import plotly.io as pio
print(pio.renderers.default)

Next, please could you change the default as follows:

import plotly.io as pio
pio.renderers.default = 'plotly_mimetype+notebook' # This is what I have on my machine and works for me.

For more information please check here https://plotly.com/python/renderers/

0reactions
DonJayamannecommented, Oct 2, 2020

Please check their documentation The link I provided earlier contains some information. The following might help It is also possible to set the default renderer using a system environment variable. At startup, plotly.py checks for the existence of an environment variable named PLOTLY_RENDERER. If this environment variable is set to the name of an available renderer, this renderer is set as the default.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting in Python - Plotly
This is an example of a plotly graph correctly rendering inside dash : Out[1]: ... Check that jupyterlab-plotly is installed $ jupyter labextension...
Read more >
Plotly chart not showing in Jupyter notebook - Stack Overflow
The plot is showing, but in a separate tab. What I would like to do is to be able to see it in...
Read more >
Unable to display plotly figures output - JupyterLab
I am working on Jupyterlab on a docker container, on an EC2 machine on AWS, versions: IPython : 7.30.1 ipykernel : 6.6.0 ipywidgets...
Read more >
Plotly Issue: (Graphs not showing even after publishing)
Yeah, I figured this out when I wasn't able to run my plotly graphs in the ... I have this problem with a...
Read more >
Show Plotly Plots in Spyder - Linux Hint
The first question you may ask is, why is Spyder not displaying my Plots? Although there is no one definitive reason as to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found