0

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

2
  • 1
    This has already been answered here. I hope this solves your issue. Commented Oct 7, 2022 at 12:44
  • have you tried Python Interactive #%%, or just launch your python file from the terminal, select a different backend and matplotlib uses a separate graph window Commented Oct 7, 2022 at 12:44

2 Answers 2

1

try GNU plotter works great for plotting

Sign up to request clarification or add additional context in comments.

1 Comment

github.com/Charudatta999/helpfull/blob/main/gnu_plotter.sh you try this I have written a shell program which you could run through wsl
-1

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.