About 1,110,000 results
Open links in new tab
  1. matplotlib - Python - How to show graph in Visual Studio Code …

    Apr 24, 2018 · import matplotlib.pyplot as plt import matplotlib as mpl import numpy as np x = np.linspace(0, 20, 100) plt.plot(x, np.sin(x)) plt.show() I see the result in a new window. Is …

  2. How to show Matplotlib graph in VS Code? - Stack Overflow

    Jan 27, 2024 · $ python -m pip install --user matplotlib The book I'm following says that, "The function plt.show() opens Matplotlib's viewer and displays the plot as shown in Figure 15-1. …

  3. Matplotlib plots not showing in VS Code - Stack Overflow

    Feb 9, 2021 · 33 In Visual Studio Code Jupyter Notebooks you may see something like this: in order to show the plot you may click on the </> symbol to the left and change the the mime …

  4. VSCode says there is no module 'matplotlib' - Stack Overflow

    Oct 27, 2021 · Are you sure you selected the correct python interpreter in VS Code? (look bottom left) There might be more than one python interpreter and you may happen to install matplotlib …

  5. visual studio code - VSCODE: jupyter adding interactive matplotlib …

    Mar 10, 2022 · The following example doesn't work in VSCODE. It works (with %matplotlib notebook in a Jupyter notebook in a web browser though). # creating 3d plot using matplotlib # …

  6. Plotting with Matplotlib in Visual Studio using Python Tools for …

    import matplotlib.pyplot as plt plt.plot([1,2,3,4,5]) plt.show() plt.plot([2,2,2,2,2]) plt.show() But the second plot does not show up unless I close the first plot. Similarly for a larger script, the rest …

  7. matplotlib figure won't show when Python is run from VS Code …

    I'm experiencing an issue while using VS Code to debug Python files. It seems that since last updating VS Code matplotlib figures have stopped being displayed after calls of plt.show().

  8. matplotlib - Interactive mode in vscode Python interactive - Stack …

    Jun 13, 2019 · %matplotlib qt and sometimes it works, but, very often, it just 'blinks' (open chart window and close it instantly, I don't know why) and shows chart in Python Interactive instead I …

  9. How to display plots in Jupyter Notebook in Visual Studio Code

    Apr 25, 2023 · Plots in matplotlib are not showing-up in a Jupyter Notebook in Visual Studio Code. I cannot see plots that I am trying to generate inside of a notebook -or- the plots that were …

  10. python - VSCode: Cannot 'import matplotlib' - Stack Overflow

    Apr 6, 2019 · I am trying to use python on VSCode for the first time. I am working on Mac. I have a file plot.py: import matplotlib.pyplot as plt import numpy as np x = np.linspace(0, 20, 100) # …