Forums

ipython nb show plots on pythonanywhere web server

A new user here, trying to find a simple way to have my ipython nb plots show on my web server. I have managed to install and use Ipython notebooks in PA, and can view the plots (pandas) in line inside my account. What I'm trying to do is to use the "pio.renderers.default = "browser" " command to spawn a new window on my PA account server. I've looked through a lot of the forum, but not been able to find what I think should be a simple solution. Do I need to run the NB as a flask app? I would like to have the plots publically available on my user.pythonanywhere.com website.

If you want to have plots publicly available through PythonAnywhere, you need to use a web app. IPython notebook which is run on our server knows nothing about your browser, so it can't open new window in it.