No barcharts in Jupyter Lab
See original GitHub issuePlotting offline in Jupyter Lab produces a line chart instead of a bar chart.
Using this code in Jupyter Lab (0.27.0):
import plotly.plotly as py
import plotly.graph_objs as go
from plotly.offline import init_notebook_mode, iplot
init_notebook_mode(connected=True)
data = [go.Bar(
x=['giraffes', 'orangutans', 'monkeys'],
y=[20, 14, 23]
)]
iplot(data, filename='basic-bar')
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Barchart plot and display issue in Jupyter notebook when ...
I am trying to plot a frequency distribution of data loaded into Jupyter notebook from a csv file in my AWS S3 bucket....
Read more >Bar plot not showing up in Jupyter Notebook
I am trying to create a bar plot for a Pandas Series and the bar plot is not showing up in Jupyter notebook....
Read more >Bar charts with error bars using Python, jupyter notebooks and ...
Bar charts without error bars give the illusion that a measured or calculated value is known to high precision or high confidence.
Read more >Building bar charts using Matplotlib - Towards Data Science
A guide on how to present your data using bar charts ... Step-by-step guide to building Bar Graphs using Jupyter Notebook. Load the...
Read more >Bar Charts and Pie Charts - Problem Solving with Python
import numpy as np import matplotlib.pyplot as plt # if using a Jupyter notebook, include: %matplotlib inline. We need some data to add...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I can confirm that with current JupyterLab, and installing the extension via
the following code:
renders fine:
I’ve been testing more complex plots, including interactive controls:
and 3-d plots:
and everything is working without a glitch.
I’m going to close this one for now as I think it’s resolved, feel free to ping if it shouldn’t.
cc @jegonzal who authored the code from the above screenshots. All working great on JLab!
Closing the loop here. I was having issues with
jupyter lab
in general related to this yesterday.I had been using the
--dev-mode
option as mentioned, but just went through and didjupyter lab build
as described here and all is well for me now.