Search code examples
pythonmatplotlibvisual-studio-codeplotlyvisualization

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


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


Solution

  • try GNU plotter works great for plotting