Comments (15)
OK, I'll give this a whirl tomorrow! What versions of Python and JupyterLab are you using?
Also, what do you mean by "Unless i use offline mode explicitly" ?
from plotly_express.
@shakasom , hope this helps!
Run this in your jupyter notebook, or jupyterlab env, cell:
!pip install plotly_express
I posted reasons and such here:
from plotly_express.
I just meant initializing for offline plotting ... Plotly.offline.plot. In that case if i pass it to plotly_express object it will work.
from plotly_express.
Windows 10: Jupyterlab 0.35.3 and Python 3.6.6.
Ubuntu 18.04: Jupyter lab 0.35.4 and Python 3.7.2
from plotly_express.
Hi @shakasom ,
Rendering figures in JupyterLab using plotly.offline.iplot
requires the @jupyterlab/plotly-extension
extension. If you don't have this installed, give that a try and see if that helps.
from plotly_express.
Thanks @jonmmease . That fixed the issue.
from plotly_express.
HI, I have tried everything I could find over the internet to resolve this issue, but px still plots empty.
from plotly_express.
@DmitriyG228 can you tell me which command you're using to launch the Notebook, and which versions of Jupyter, the Jupyter extension, and Plotly and Plotly Express you are using?
When using jupyter notebook
it sometimes happens that the notebook loses track of its state, in which case you unfortunately need to use the "restart & clear output" option from the Kernel menu in the notebook. JupyterLab doesn't suffer from this problem.
from plotly_express.
Hi, @nicolaskruchten ,
-
My lab is running on remote server (Ubuntu 18.04.3),
-
I launch server with /bin/bash -c "cd /path; source ~/.bashrc; conda activate base; (jupyter lab --ip=0.0.0.0 --port=9996 >> /var/log/jupyter2.log 2>>/var/log/jupyter2.log)" &
-
i connect to jupyter server with dedicated domain name.
-
jupyter lab version 0.35.4
-
I am not very familiar with jupyterlab extensions and can not find how to check what is installed, but, I remember that I have installed @jupyterlab/plotly-extension and some other one.
plotly==4.0.0
plotly-express==0.4.0
Thank you!
from plotly_express.
@DmitriyG228 ok thanks! I will definitely need the list of lab extensions, available by running jupyter labextension list
... I suspect you have the old, pre-v4-compatible extension.
from plotly_express.
@nicolaskruchten , thank you and sorry for my noob knowledge of extensions
(fastai) dima@ml:~$ jupyter labextension list
JupyterLab v1.1.4
Known labextensions:
app dir: /home/dima/anaconda3/envs/fastai/share/jupyter/lab
@jupyterlab/plotly-extension v1.0.0 enabled OK
nbdime-jupyterlab v1.0.0 enabled OK
plotlywidget v0.8.0 enabled OK
Build recommended, please run `jupyter lab build`:
plotlywidget needs to be included in build
(fastai) dima@ml:~$ jupyter lab build
[LabBuildApp] JupyterLab 1.1.4
[LabBuildApp] Building in /home/dima/anaconda3/envs/fastai/share/jupyter/lab
[LabBuildApp] Building jupyterlab assets (build:prod:minimize)
An error occured.
RuntimeError: JupyterLab failed to build
from plotly_express.
@nicolaskruchten, can you please look at my issue once again? you may have missed my last message. thank you!
from plotly_express.
Sorry, yes. The output above suggests that the extensions aren't installing correctly, but I'm not sure why. I would recommend uninstalling and reinstalling the latest version of the extensions (which are 1.2.0 I think, today!)
from plotly_express.
Don't know what the status of this is, but plotly plots still don't plot for me in Jupyter Lab.
from plotly_express.
If you're encountering rendering issues, please check out our troubleshooting guide at https://plotly.com/python/troubleshooting/ and if there are no answers there for you, please create a new issue in the Plotly.py repo and we will try to help you :)
from plotly_express.
Related Issues (20)
- Marginal subplots disappear when selecting another frame HOT 1
- range_theta in polar plots would be nice HOT 2
- `category_orders` does not raise an error with incorrect column name HOT 3
- ImportError: cannot import name 'ensure_writable_plotly_dir' HOT 1
- plotly.express does not interact properly with panel in jupyter notebook HOT 4
- TypeError: imshow() got an unexpected keyword argument 'x' HOT 4
- Plotly Express shows blank plot for chloropleths on virtual machine! Error: 404 GET/static/plotly.js! how to resolve this?
- Facet Grids with Overlay Lines HOT 1
- Argument for plots to become non-interactive to save memory in Jupyter HOT 1
- Image export ignores layout for plot size (using )
- Density Contour range_z
- plotly loop in loop HOT 1
- How to use countplot() in plotly with VAEX data frame? HOT 9
- Using px.density_contour with both marginal_x and contours_coloring causes error HOT 2
- Fill between two vertical lines but multiple times
- Adding bar traces with add_trace gives different x-axis spacing than adding strip or box traces
- Not working with IPython
- plotly express shows Invalid property latitude for choropleth map plot
- Wrong y-values when using bar graph HOT 1
- Error occured while creating the select button. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plotly_express.