FAQ

Home/FAQ
FAQ2020-08-25T10:10:06-08:00
My Matplotlib plots are not showing up.2020-08-25T11:27:35-08:00

Assuming you imported matplotlib.pyplot as plt, try plt.ion() at the start of your code.  This enables interactive plotting.  If this does not work, you may need to change your backend, See the matplotlib FAQ for details on this question.

How can I record or playback audio in Python?2020-08-25T11:27:21-08:00

There are a couple of Python modules that will let you do this, I would suggest using sounddevice.  It can be installed with pip or conda:  python-sounddevice as is built on top of the platform independent PortIO package.  The documentation has lots of examples, ranging from very simple to sophisticated.

How can I read an audio file in Python?2020-08-25T11:27:11-08:00

The soundfile module is a Python interface to an established cross-platform open source library, libsndfile, that can read a variety of different audio file formats.  Install pysoundfile with pip or anaconda, and see the documentation for examples.

How can I have PyCharm display plots in a stand-alone window?2020-08-25T11:27:47-08:00

Go to File->Settings then select Python Scientific in the settings box.  Uncheck “Show plots in tool window”.

Go to Top