You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: notebooks/part0_python_intro/07b_VSCode.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -115,6 +115,12 @@ The Run and Debug view on the left (available via the Activity Bar) shows the cu
115
115
### Plotting
116
116
During a debug session, as long as matplotlib has been imported, one can make plots via the Debug Console or by putting plotting code in the script.
117
117
118
+
**If the plot isn't showing up**
119
+
* Try making the plot by starting with `fig, ax = plt.subplots()` syntax (instead of `plt.plot()`)
120
+
* Then in the debug console enter `fig.show()` or `plt.draw()`
121
+
* Alternativey, try `plt.pause(1)`
122
+
* On Windows, look in the task bar for a matplotlib icon <img src="https://upload.wikimedia.org/wikipedia/commons/8/84/Matplotlib_icon.svg" alt="drawing" width="40"/> (or press Alt + Tab to show the open windows)
123
+
118
124
### Automatic docstring generation
119
125
Right click at the beginning of the first line *below* the ``def`` statement for any of the functions and choose ``Generate docstring``. The autoDocstring extension should make a new template for a docstring that includes all of the parameters listed in the function signature.
0 commit comments