Giter Club home page Giter Club logo

Comments (15)

nicolaskruchten avatar nicolaskruchten commented on August 10, 2024

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.

CloudChaoszero avatar CloudChaoszero commented on August 10, 2024

@shakasom , hope this helps!


Run this in your jupyter notebook, or jupyterlab env, cell:

!pip install plotly_express

I posted reasons and such here:

#11 (comment)

from plotly_express.

shakasom avatar shakasom commented on August 10, 2024

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.

shakasom avatar shakasom commented on August 10, 2024

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.

jonmmease avatar jonmmease commented on August 10, 2024

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.

shakasom avatar shakasom commented on August 10, 2024

Thanks @jonmmease . That fixed the issue.

from plotly_express.

DmitriyG228 avatar DmitriyG228 commented on August 10, 2024

HI, I have tried everything I could find over the internet to resolve this issue, but px still plots empty.

from plotly_express.

nicolaskruchten avatar nicolaskruchten commented on August 10, 2024

@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.

DmitriyG228 avatar DmitriyG228 commented on August 10, 2024

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.

nicolaskruchten avatar nicolaskruchten commented on August 10, 2024

@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.

DmitriyG228 avatar DmitriyG228 commented on August 10, 2024

@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.

DmitriyG228 avatar DmitriyG228 commented on August 10, 2024

@nicolaskruchten, can you please look at my issue once again? you may have missed my last message. thank you!

from plotly_express.

nicolaskruchten avatar nicolaskruchten commented on August 10, 2024

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.

rlele5 avatar rlele5 commented on August 10, 2024

Don't know what the status of this is, but plotly plots still don't plot for me in Jupyter Lab.

from plotly_express.

nicolaskruchten avatar nicolaskruchten commented on August 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.