Download Matplotlib Pycharm |VERIFIED|

0 views
Skip to first unread message

Sharmaine Kachmar

unread,
Jan 25, 2024, 11:49:29 AM1/25/24
to esemhilrea

it seems like you have installed python more than one and matplotlib library installed with python that currently not used by Pycharm by default. so in your python script add #!/usr/bin/env python or full path of python interpreter that has matplotlib.

download matplotlib pycharm


Download Ziphttps://t.co/K0HAzQ9fKt



if you are using python installed by system by default then use python-matplotlib if you install python3-matplotlib then it will create problem or vise versa . in this situation you have to mention full path of python interpreter that you want to use .

Specifically, I would like to use Streamlit to allow me to browse through a dataframe that I have created within my python code. In essence similar to what one can do with matplotlib to plot data from within python.

Why wait to run the program to see the magic happen? This plugin lets you run your Python code as you type it. It will display variable values, matplotlib, Pyglet, or turtle graphics in a dedicated panel on the right of your Intellij IDEA workspace.

First, sketch out what you think the temperature of the tea will look like over the first 3 minutes. Then, use matplotlib to do so, so Boop can determine whether the tea is cool enough to drink or not.

Seems to be specific to matplotlib as other custom PYTs load fine, but if I add import matplotlib they also run into same error. There is a matplotlib in the site-packages for 64-bit python. Just to be safe I upgraded it via pip to the latest.

Now while I could import matplotlib in 32-bit Python normally (e.g. via Python in CMD or PyCharm), the ArcPy Toolbox still had a "Check Syntax.." error about IO Error: Invalid file descriptor. While I'm not sure specifically what that error referenced, the line in question was only a print statement (printing a non-fatal warning). Something about how ArcGIS loads the library probably causes an issue with this, even though it loads fine in the regular Python environment.

Bit hacky, but now it works anyways. I suppose other option is to delve into updating matplotlibrc, but I found this way simpler -- though I did try updating matplotlib to the latest via pip (yes, forcing on 32-bit python), but didn't fix anything.

To enable interactive plots, you have to invoke the correct magic commandsin the notebook. When using Jupyter notebook, the following command will switch the matplotlib backend from the inlineone (which renders images) to the interactive backend:

df19127ead
Reply all
Reply to author
Forward
0 new messages