How to plot graph in python (.py) without Jupyter cells in Visual Studio Code?

Question:

I don’t really like working in Jupyter enviroment and prefer raw Python. Is it posible to plot graphs directly in VSC via .py file? If I put my code to Jupyter cell in Jupyter file (.ipynp) the visualization works fine directly in VSC.

I use plotly or matplotlib, but i am willing to learn other packages if needed.

Is there for example some extencion to VSC that I could use? Or is it posible to plot to jpg/html file that I could open with file explorer?

Edit:
I made a newbie mistake. I didn’t use command plt.show() to plot the matplotlib graph.
But GNU plotter suggested by Charudatta is also great solution

Asked By: herdek550

||

Answers:

try GNU plotter works great for plotting

Answered By: Charudatta

I don’t think you can, you can’t display images in a terminal

Answered By: iven