Working of jupyter notebook in vs code
Closed this issue · 4 comments
Ksp-3086 commented
mxgnsr commented
Hi,
running it with the "%matplotlib notebook" statement did not work for me either.
Can yout try "%matplotlib inline"?
BR
Max
Ksp-3086 commented
Yeah thanks it did work although it gave a warning sort of "UserWarning: Matplotlib is currently using module://matplotlib_inline.backend_inline, which is a non-GUI backend, so cannot show the figure.
fig.show()".
Can you tell me why this worked and why is this warning be shown? I can't see " fig.show()" in the code.
mxgnsr commented
According to this Issue, vscode does currently not support the notebook-mode for matplotlib. Inline-mode seems to work, although I personally don't get that warning.
The fig.show()
statement is part of the machine.plot()
function.
Ksp-3086 commented
ok thanks for the help