Forums

Plot.ly

Hi currently I'm using matplotlib to plot and show a graph on my website and am trying to change it to plot.ly. How can I use plot.ly in PythonAnywhere? Do I download/ deploy plot.ly somewhere on PA first?

The web framework I use here is bottle.py. My plot.ly works perfectly on my jupyter notebook with python. Thanks!

It depends how you will use plotly to display the graphs. For example, if you are using Dash, take a look at our help pages here with an example website etc.

No im not using Dash... i'm not sure what it is yet. Is there any way to plot with plotly without Dash?

If i use Dash, do I have to do something on Virtualenv? What exactly should I do?

Dash is something that is under Plotly. It is one way to show plotly graphs on websites. There are potentially other ways. For example, you could pay $396/yr to get plotly the company to setup and manage a plotly server (eg: dash etc) for you. It is open source so you could also run your own dash webapp etc.

Refer above to the help pages and example code for how to set this up. You can also get help at Codementor to guide you through this process.

I am curious what is the advantage of plotly over matplotlib? I am in the process of trying to make a quick demonstration web app that graphs the output of some code, and I am trying to keep it as simple as possible. Will matplotlib work for displaying a plot on a basic pythonanywhere account, or do I have to setup Dash and use plotly? For this a lot of features for direct interactivity with the output graph is not needed. The dashingdemo example and documentation is great, btw. CarbonCycle200, how did you implement the matplotlib case you are trying to upgrade? Thanks!

So I think I understand now that you are just using matplotlib to generate image files which are displayed on the webpage. Clearly, interactive plotly graphs are way cooler. No need to respond.