Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Embedded charts in PyCharm IPython console

Is there a way to allow embedded Matplotlib charts in the IPython console that is activated within PyCharm? I'm looking for similar behavior to what can be done with the QT console version of IPython, i.e. ipython qtconsole --matplotlib inline

like image 434
Abiel Avatar asked Jul 08 '14 17:07

Abiel


People also ask

How do I use IPython console in PyCharm?

Fixing is quite easy: Go to Settings -> Project: <project name> -> Project interpreter At the bottom of the packages list you should see a + sign. Press that button, find ipython and install it. On the next time you'll open your console, IPython will be detected and used automatically.

Does Matplotlib work in PyCharm?

Professional feature: download PyCharm Professional to try. In this tutorial, you operate in Scientific Mode and use Matplotlib and NumPy packages to run and debug a Python code with data visualization. Before you start, ensure the following is installed: Conda interpreter.


1 Answers

It doesn't look like you can do it: PyCharm does not use the 'qtconsole' of ipython, but either a plain text console (when you open the "Python console" tab in PyCharm) or ipython notebook (when you open a *.ipynb file). Moreover, PyCharm is done in Java, while to have an interactive plot Matplotlib needs to have a direct connection/knowledge/understanding of the underlying graphic toolkit used... Matplotlib doesn't support any Java based backend, so i guess Pycharm would need to "bridge" the native underlying toolkit...

like image 164
Ariel Avatar answered Oct 31 '22 10:10

Ariel