Plot isn't rendered when using %matplotlib widget
See original GitHub issueEnvironment data
- VS Code version: 1.66.2
- Jupyter Extension version: v2022.3.1000901801
- Python Extension version: v2022.4.1
- OS and version: Linux (Fedora 35 / Kernel 5.16.18-200.fc35.x86_64)
- Python: 3.10.4
- Type of virtual environment used: N/A (python packages installed in the home directory)
- Jupyter server running: Local
Expected behaviour
A plot of the sine function should appear.
Actual behaviour
No plot is produced and a VSCode notification with the following text appears.
Unable to find widget ‘jupyter-matplotlib’ version ‘1.0.0’ from configured widget sources [“jsdelivr.com”,“unpkg.com”]. Expected behavior may be affected. Click here for more information.
Steps to reproduce:
- Open a new notebook and fill the first cell with this snippet of code:
%matplotlib widget
import matplotlib.pyplot as plt
import numpy as np
X = np.linspace(0, 2*np.pi)
Y = np.sin(X)
fig, ax = plt.subplots()
ax.plot(X, Y)
fig.show()
- Run the cell.
- Make sure the mimetype of the output cell is set to ‘application/vnd.jupyter.widget-view+json’.
Logs
Output for Jupyter
in the Output
panel
Visual Studio Code (1.66.2, undefined, desktop)
Jupyter Extension Version: 2022.3.1000901801.
Python Extension Version: 2022.4.1.
Workspace folder ~/Documents/Notebooks/Project
Info 10:31:53: ZMQ install verified.
Info 10:31:53: Preferred kernel connection found in cache .jvsc74a57bd0e7370f93d1d0cde622a1f8e1c04877d8463912d04d973331ad4851f04de6915a./bin/python./bin/python.-m#ipykernel_launcher
Info 10:31:53: PreferredConnection: .jvsc74a57bd0e7370f93d1d0cde622a1f8e1c04877d8463912d04d973331ad4851f04de6915a./bin/python./bin/python.-m#ipykernel_launcher found for NotebookDocument: ~/Documents/Notebooks/Project/bug.ipynb
Info 10:31:53: Early registration of controller for Kernel connection .jvsc74a57bd0e7370f93d1d0cde622a1f8e1c04877d8463912d04d973331ad4851f04de6915a./bin/python./bin/python.-m#ipykernel_launcher
Info 10:31:53: TargetController found ID: .jvsc74a57bd0e7370f93d1d0cde622a1f8e1c04877d8463912d04d973331ad4851f04de6915a./bin/python./bin/python.-m#ipykernel_launcher for document ~/Documents/Notebooks/Project/bug.ipynb
Info 10:31:53: Setting controller affinity for ~/Documents/Notebooks/Project/bug.ipynb .jvsc74a57bd0e7370f93d1d0cde622a1f8e1c04877d8463912d04d973331ad4851f04de6915a./bin/python./bin/python.-m#ipykernel_launcher
Info 10:31:53: Getting activation commands for /bin/python are not cached. May take a while.
Info 10:31:53: Experiment status for python is {"enabled":true,"optInto":[],"optOutFrom":[]}
Info 10:31:54: Setting setActiveController for ~/Documents/Notebooks/Project/bug.ipynb
Info 10:31:54: KernelProvider switched kernel to id = .jvsc74a57bd0e7370f93d1d0cde622a1f8e1c04877d8463912d04d973331ad4851f04de6915a./bin/python./bin/python.-m#ipykernel_launcher
Info 10:31:54: Starting Notebook in kernel.ts id = .jvsc74a57bd0e7370f93d1d0cde622a1f8e1c04877d8463912d04d973331ad4851f04de6915a./bin/python./bin/python.-m#ipykernel_launcher for ~/Documents/Notebooks/Project/bug.ipynb
Info 10:31:54: Creating raw notebook for ~/Documents/Notebooks/Project/bug.ipynb
Info 10:31:54: Getting preferred kernel for ~/Documents/Notebooks/Project/bug.ipynb
Info 10:31:54: Computing working directory ~/Documents/Notebooks/Project/bug.ipynb
Info 10:31:54: Creating controller for jupyter-notebook with interpreter /bin/python
Info 10:31:54: Starting raw kernel Python 3.10.4 64-bit for interpreter /bin/python
Info 10:31:54: Kernel launching with ports 9000,9001,9002,9003,9004. Start port is 9000
Info 10:31:54: Process Execution: > /bin/python -m pip list
> /bin/python -m pip list
Info 10:31:54: Process Execution: > /bin/python -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
> /bin/python -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
Info 10:31:54: Process Execution: > /bin/python -m ipykernel_launcher --ip=127.0.0.1 --stdin=9003 --control=9001 --hb=9000 --Session.signature_scheme="hmac-sha256" --Session.key=b"9f49a9fe-d4ea-43d2-9f31-2b73d225285b" --shell=9002 --transport="tcp" --iopub=9004 --f=/tmp/tmp-110953SLuqemi57zrY.json
> /bin/python -m ipykernel_launcher --ip=127.0.0.1 --stdin=9003 --control=9001 --hb=9000 --Session.signature_scheme="hmac-sha256" --Session.key=b"9f49a9fe-d4ea-43d2-9f31-2b73d225285b" --shell=9002 --transport="tcp" --iopub=9004 --f=/tmp/tmp-110953SLuqemi57zrY.json
Info 10:31:54: Process Execution: cwd: ~/Documents/Notebooks/Project
cwd: ~/Documents/Notebooks/Project
Info 10:31:55: ipykernel version 6.12.1 for /bin/python
Info 10:31:55: ipykernel location ~/.local/lib/python3.10/site-packages/ipykernel/__init__.py for /bin/python
Info 10:31:55: Registering dummy command feature
Info 10:31:56: Execute Cells request 0
Info 10:31:56: Execute Cell 0 ~/Documents/Notebooks/Project/bug.ipynb
Warn 10:31:57: StdErr from Kernel Process /home/mojert/.local/lib/python3.10/site-packages/traitlets/traitlets.py:2202: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5.
warn(
Warn 10:31:57: StdErr from Kernel Process /home/mojert/.local/lib/python3.10/site-packages/traitlets/traitlets.py:2157: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '9f49a9fe-d4ea-43d2-9f31-2b73d225285b' instead of 'b"9f49a9fe-d4ea-43d2-9f31-2b73d225285b"'.
warn(
Info 10:31:57: Kernel Output: NOTE: When using the `ipython kernel` entry point, Ctrl-C will not work.
To exit, you will have to explicitly quit this process, by either sending
"quit" from a client, or using Ctrl-\ in UNIX-like environments.
To read more about this, see https://github.com/ipython/ipython/issues/2049
To connect another client to this kernel, use:
--existing /tmp/tmp-110953SLuqemi57zrY.json
Info 10:31:57: Raw session started and connected
Started kernel Python 3.10.4 64-bit
Info 10:31:57: Finished connecting f88ad274-04ce-4013-8a59-1eb36961faa2
Info 10:31:57: UpdateWorkingDirectoryAndPath in Kernel
Info 10:31:57: Executing silently Code (idle) = import site\nsite.addsitedir(site.getusersitepackages())\nimport os\nimport sys\n%cd "/home/mojert/Docum
Info 10:31:57: Executing silently Code (completed) = import site\nsite.addsitedir(site.getusersitepackages())\nimport os\nimport sys\n%cd "/home/mojert/Docum
Info 10:31:57: Waiting for idle on (kernel): 2a3045eb-654b-4cdf-ac84-5967784e770e -> idle
Info 10:31:57: Finished waiting for idle on (kernel): 2a3045eb-654b-4cdf-ac84-5967784e770e -> idle
Info 10:31:59: [32mFetch Script for {"moduleName":"jupyter-matplotlib","moduleVersion":"1.0.0"}
Info 10:31:59: [32mFetch Script for jupyter-matplotlib
Info 10:31:59: [32mSearching for Widget Script jupyter-matplotlib#1.0.0 at path: /home/mojert/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/tmp/scripts/7a8ce27b5d663aa9fab36b9a83e0f31e6d82b113be83ff8be560dfb88a158497/index.js
Info 10:31:59: [32mWidget Script jupyter-matplotlib#1.0.0 searching
Info 10:31:59: [32mDownloading from CDN https://cdn.jsdelivr.net/npm/jupyter-matplotlib@1.0.0/dist/index.js into /tmp/tmp-110953TfMIs2xZm73l.js
Info 10:32:00: [32mDownloading from CDN https://unpkg.com/jupyter-matplotlib@1.0.0/dist/index into /tmp/tmp-1109537Af2ZS5fjET0.js
Info 10:32:00: Cell 0 executed with state Success
Info 10:32:00: Error downloading from https://unpkg.com/jupyter-matplotlib@1.0.0/dist/index: [a [HTTPError]: Response code 404 (Not Found)
at EventEmitter.<anonymous> (/home/mojert/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:2539074)
at EventEmitter.emit (node:events:390:28)
at /home/mojert/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:2536765
at Immediate.<anonymous> (/home/mojert/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:2536855)
at processImmediate (node:internal/timers:464:21)] {
host: 'unpkg.com',
hostname: 'unpkg.com',
method: 'GET',
path: '/jupyter-matplotlib@1.0.0/dist/index',
protocol: 'https:',
url: 'https://unpkg.com/jupyter-matplotlib@1.0.0/dist/index',
statusCode: 404,
statusMessage: 'Not Found',
headers: {
date: 'Sun, 17 Apr 2022 08:32:00 GMT',
'content-type': 'text/plain; charset=utf-8',
'transfer-encoding': 'chunked',
connection: 'close',
'access-control-allow-origin': '*',
'content-encoding': 'gzip',
etag: 'W/"2c-9YhedqwRtN4tGUGTg2Y9M+PMMMI"',
via: '1.1 fly.io',
'fly-request-id': '01G0VADQPAAEKGVCN6AMQEPG4R-fra',
'cf-cache-status': 'EXPIRED',
'expect-ct': 'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"',
vary: 'Accept-Encoding',
'strict-transport-security': 'max-age=31536000; includeSubDomains; preload',
'x-content-type-options': 'nosniff',
server: 'cloudflare',
'cf-ray': '6fd3cec0ad90233d-ZRH'
}
}
Info 10:32:00: [32mDownloading from CDN https://unpkg.com/jupyter-matplotlib@1.0.0/dist/index into /tmp/tmp-1109537Af2ZS5fjET0.js
Info 10:32:00: Error downloading from https://cdn.jsdelivr.net/npm/jupyter-matplotlib@1.0.0/dist/index.js: [a [HTTPError]: Response code 404 (Not Found)
at EventEmitter.<anonymous> (/home/mojert/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:2539074)
at EventEmitter.emit (node:events:390:28)
at /home/mojert/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:2536765
at Immediate.<anonymous> (/home/mojert/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:2536855)
at processImmediate (node:internal/timers:464:21)] {
host: 'cdn.jsdelivr.net',
hostname: 'cdn.jsdelivr.net',
method: 'GET',
path: '/npm/jupyter-matplotlib@1.0.0/dist/index.js',
protocol: 'https:',
url: 'https://cdn.jsdelivr.net/npm/jupyter-matplotlib@1.0.0/dist/index.js',
statusCode: 404,
statusMessage: 'Not Found',
headers: {
date: 'Sun, 17 Apr 2022 08:32:00 GMT',
'content-type': 'text/plain; charset=utf-8',
'content-length': '67',
connection: 'close',
'alt-svc': 'h3=":443"; ma=86400, h3-29=":443"; ma=86400',
'access-control-allow-origin': '*',
'access-control-expose-headers': '*',
'timing-allow-origin': '*',
'cache-control': 'public, max-age=30, s-maxage=30',
'cross-origin-resource-policy': 'cross-origin',
'x-content-type-options': 'nosniff',
'strict-transport-security': 'max-age=31536000; includeSubDomains; preload',
etag: 'W/"32-lMx3rUKeIuANT/sXRkkFSpvfrSw"',
'content-encoding': 'gzip',
'x-served-by': 'cache-fra19165-FRA',
'x-cache': 'MISS',
vary: 'Accept-Encoding',
'cf-cache-status': 'EXPIRED',
'expect-ct': 'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"',
'report-to': '{"endpoints":[{"url":"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=QLqieztwu83RmYXOZc0SDpNhbMuV%2FXAyElO85zxfIEmLDnB3gfOBRyXjDE%2FTDj3VH%2FuHGxRFXxFXGe2nLcDUHjdzjn2HuVnLv24Aqj5PK0h8SWpMlsJ2EyuF%2BqQ61vEFhJs%3D"}],"group":"cf-nel","max_age":604800}',
nel: '{"success_fraction":0.01,"report_to":"cf-nel","max_age":604800}',
server: 'cloudflare',
'cf-ray': '6fd3cec099c501f4-ZRH'
}
}
Info 10:32:00: [32mDownloading from CDN https://cdn.jsdelivr.net/npm/jupyter-matplotlib@1.0.0/dist/index.js into /tmp/tmp-110953TfMIs2xZm73l.js
Info 10:32:01: Error downloading from https://unpkg.com/jupyter-matplotlib@1.0.0/dist/index: [a [HTTPError]: Response code 404 (Not Found)
at EventEmitter.<anonymous> (/home/mojert/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:2539074)
at EventEmitter.emit (node:events:390:28)
at /home/mojert/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:2536765
at Immediate.<anonymous> (/home/mojert/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:2536855)
at processImmediate (node:internal/timers:464:21)] {
host: 'unpkg.com',
hostname: 'unpkg.com',
method: 'GET',
path: '/jupyter-matplotlib@1.0.0/dist/index',
protocol: 'https:',
url: 'https://unpkg.com/jupyter-matplotlib@1.0.0/dist/index',
statusCode: 404,
statusMessage: 'Not Found',
headers: {
date: 'Sun, 17 Apr 2022 08:32:01 GMT',
'content-type': 'text/plain; charset=utf-8',
'transfer-encoding': 'chunked',
connection: 'close',
'access-control-allow-origin': '*',
'content-encoding': 'gzip',
etag: 'W/"2c-9YhedqwRtN4tGUGTg2Y9M+PMMMI"',
via: '1.1 fly.io',
'fly-request-id': '01G0VADQPAAEKGVCN6AMQEPG4R-fra',
'cf-cache-status': 'HIT',
age: '1',
'expect-ct': 'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"',
vary: 'Accept-Encoding',
'strict-transport-security': 'max-age=31536000; includeSubDomains; preload',
'x-content-type-options': 'nosniff',
server: 'cloudflare',
'cf-ray': '6fd3cec66aa701e7-ZRH'
}
}
Info 10:32:01: [32mDownloading from CDN https://unpkg.com/jupyter-matplotlib@1.0.0/dist/index into /tmp/tmp-1109537Af2ZS5fjET0.js
Info 10:32:01: Error downloading from https://cdn.jsdelivr.net/npm/jupyter-matplotlib@1.0.0/dist/index.js: [a [HTTPError]: Response code 404 (Not Found)
at EventEmitter.<anonymous> (/home/mojert/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:2539074)
at EventEmitter.emit (node:events:390:28)
at /home/mojert/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:2536765
at Immediate.<anonymous> (/home/mojert/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:2536855)
at processImmediate (node:internal/timers:464:21)] {
host: 'cdn.jsdelivr.net',
hostname: 'cdn.jsdelivr.net',
method: 'GET',
path: '/npm/jupyter-matplotlib@1.0.0/dist/index.js',
protocol: 'https:',
url: 'https://cdn.jsdelivr.net/npm/jupyter-matplotlib@1.0.0/dist/index.js',
statusCode: 404,
statusMessage: 'Not Found',
headers: {
date: 'Sun, 17 Apr 2022 08:32:01 GMT',
'content-type': 'text/plain; charset=utf-8',
'content-length': '67',
connection: 'close',
'alt-svc': 'h3=":443"; ma=86400, h3-29=":443"; ma=86400',
'access-control-allow-origin': '*',
'access-control-expose-headers': '*',
'timing-allow-origin': '*',
'cache-control': 'public, max-age=30, s-maxage=30',
'cross-origin-resource-policy': 'cross-origin',
'x-content-type-options': 'nosniff',
'strict-transport-security': 'max-age=31536000; includeSubDomains; preload',
etag: 'W/"32-lMx3rUKeIuANT/sXRkkFSpvfrSw"',
'content-encoding': 'gzip',
age: '1',
'x-served-by': 'cache-fra19165-FRA',
'x-cache': 'MISS',
vary: 'Accept-Encoding',
'cf-cache-status': 'HIT',
'expect-ct': 'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"',
'report-to': '{"endpoints":[{"url":"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=SFqCMhoDzWeOoHYXG6uj%2Fa%2BrRNwpyR%2F5bWpaaP6IjIReOBKqG2Q%2BiZNZBz6QWt3MQHLo676S6PltCpqa8ktbCnsvosicvfmDCjuwvooEkvKFLuqbIogphhmcep83VZw1Zt4%3D"}],"group":"cf-nel","max_age":604800}',
nel: '{"success_fraction":0.01,"report_to":"cf-nel","max_age":604800}',
server: 'cloudflare',
'cf-ray': '6fd3cec68ed80225-ZRH'
}
}
Info 10:32:01: [32mDownloading from CDN https://cdn.jsdelivr.net/npm/jupyter-matplotlib@1.0.0/dist/index.js into /tmp/tmp-110953TfMIs2xZm73l.js
Info 10:32:01: Error downloading from https://unpkg.com/jupyter-matplotlib@1.0.0/dist/index: [a [HTTPError]: Response code 404 (Not Found)
at EventEmitter.<anonymous> (/home/mojert/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:2539074)
at EventEmitter.emit (node:events:390:28)
at /home/mojert/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:2536765
at Immediate.<anonymous> (/home/mojert/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:2536855)
at processImmediate (node:internal/timers:464:21)] {
host: 'unpkg.com',
hostname: 'unpkg.com',
method: 'GET',
path: '/jupyter-matplotlib@1.0.0/dist/index',
protocol: 'https:',
url: 'https://unpkg.com/jupyter-matplotlib@1.0.0/dist/index',
statusCode: 404,
statusMessage: 'Not Found',
headers: {
date: 'Sun, 17 Apr 2022 08:32:01 GMT',
'content-type': 'text/plain; charset=utf-8',
'transfer-encoding': 'chunked',
connection: 'close',
'access-control-allow-origin': '*',
'content-encoding': 'gzip',
etag: 'W/"2c-9YhedqwRtN4tGUGTg2Y9M+PMMMI"',
via: '1.1 fly.io',
'fly-request-id': '01G0VADQPAAEKGVCN6AMQEPG4R-fra',
'cf-cache-status': 'HIT',
age: '1',
'expect-ct': 'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"',
vary: 'Accept-Encoding',
'strict-transport-security': 'max-age=31536000; includeSubDomains; preload',
'x-content-type-options': 'nosniff',
server: 'cloudflare',
'cf-ray': '6fd3cec6cfa10229-ZRH'
}
}
Info 10:32:01: [32mDownloading from CDN https://unpkg.com/jupyter-matplotlib@1.0.0/dist/index into /tmp/tmp-1109537Af2ZS5fjET0.js
Info 10:32:01: Error downloading from https://cdn.jsdelivr.net/npm/jupyter-matplotlib@1.0.0/dist/index.js: [a [HTTPError]: Response code 404 (Not Found)
at EventEmitter.<anonymous> (/home/mojert/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:2539074)
at EventEmitter.emit (node:events:390:28)
at /home/mojert/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:2536765
at Immediate.<anonymous> (/home/mojert/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:2536855)
at processImmediate (node:internal/timers:464:21)] {
host: 'cdn.jsdelivr.net',
hostname: 'cdn.jsdelivr.net',
method: 'GET',
path: '/npm/jupyter-matplotlib@1.0.0/dist/index.js',
protocol: 'https:',
url: 'https://cdn.jsdelivr.net/npm/jupyter-matplotlib@1.0.0/dist/index.js',
statusCode: 404,
statusMessage: 'Not Found',
headers: {
date: 'Sun, 17 Apr 2022 08:32:01 GMT',
'content-type': 'text/plain; charset=utf-8',
'content-length': '67',
connection: 'close',
'alt-svc': 'h3=":443"; ma=86400, h3-29=":443"; ma=86400',
'access-control-allow-origin': '*',
'access-control-expose-headers': '*',
'timing-allow-origin': '*',
'cache-control': 'public, max-age=30, s-maxage=30',
'cross-origin-resource-policy': 'cross-origin',
'x-content-type-options': 'nosniff',
'strict-transport-security': 'max-age=31536000; includeSubDomains; preload',
etag: 'W/"32-lMx3rUKeIuANT/sXRkkFSpvfrSw"',
'content-encoding': 'gzip',
age: '1',
'x-served-by': 'cache-fra19165-FRA',
'x-cache': 'MISS',
vary: 'Accept-Encoding',
'cf-cache-status': 'HIT',
'expect-ct': 'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"',
'report-to': '{"endpoints":[{"url":"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=V7DidpqCfCYCFbuBDgjTA1Ugl28lQ4eaUguOK6ULqS91Ba3htDhcUjeEYOgmZlZPlAGweknHwHpDGbgqUFxPT4%2BMh2KI8QZrnali6qYbVlC3fc7kMjNTzh%2BLh1oZxSSWX1A%3D"}],"group":"cf-nel","max_age":604800}',
nel: '{"success_fraction":0.01,"report_to":"cf-nel","max_age":604800}',
server: 'cloudflare',
'cf-ray': '6fd3cec6df420225-ZRH'
}
}
Info 10:32:01: [32mDownloading from CDN https://cdn.jsdelivr.net/npm/jupyter-matplotlib@1.0.0/dist/index.js into /tmp/tmp-110953TfMIs2xZm73l.js
Info 10:32:01: Error downloading from https://unpkg.com/jupyter-matplotlib@1.0.0/dist/index: [a [HTTPError]: Response code 404 (Not Found)
at EventEmitter.<anonymous> (/home/mojert/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:2539074)
at EventEmitter.emit (node:events:390:28)
at /home/mojert/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:2536765
at Immediate.<anonymous> (/home/mojert/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:2536855)
at processImmediate (node:internal/timers:464:21)] {
host: 'unpkg.com',
hostname: 'unpkg.com',
method: 'GET',
path: '/jupyter-matplotlib@1.0.0/dist/index',
protocol: 'https:',
url: 'https://unpkg.com/jupyter-matplotlib@1.0.0/dist/index',
statusCode: 404,
statusMessage: 'Not Found',
headers: {
date: 'Sun, 17 Apr 2022 08:32:01 GMT',
'content-type': 'text/plain; charset=utf-8',
'transfer-encoding': 'chunked',
connection: 'close',
'access-control-allow-origin': '*',
'content-encoding': 'gzip',
etag: 'W/"2c-9YhedqwRtN4tGUGTg2Y9M+PMMMI"',
via: '1.1 fly.io',
'fly-request-id': '01G0VADQPAAEKGVCN6AMQEPG4R-fra',
'cf-cache-status': 'HIT',
age: '1',
'expect-ct': 'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"',
vary: 'Accept-Encoding',
'strict-transport-security': 'max-age=31536000; includeSubDomains; preload',
'x-content-type-options': 'nosniff',
server: 'cloudflare',
'cf-ray': '6fd3cec73a5d01e3-ZRH'
}
}
Info 10:32:01: [32mDownloading from CDN https://unpkg.com/jupyter-matplotlib@1.0.0/dist/index into /tmp/tmp-1109537Af2ZS5fjET0.js
Info 10:32:01: Error downloading from https://cdn.jsdelivr.net/npm/jupyter-matplotlib@1.0.0/dist/index.js: [a [HTTPError]: Response code 404 (Not Found)
at EventEmitter.<anonymous> (/home/mojert/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:2539074)
at EventEmitter.emit (node:events:390:28)
at /home/mojert/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:2536765
at Immediate.<anonymous> (/home/mojert/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:2536855)
at processImmediate (node:internal/timers:464:21)] {
host: 'cdn.jsdelivr.net',
hostname: 'cdn.jsdelivr.net',
method: 'GET',
path: '/npm/jupyter-matplotlib@1.0.0/dist/index.js',
protocol: 'https:',
url: 'https://cdn.jsdelivr.net/npm/jupyter-matplotlib@1.0.0/dist/index.js',
statusCode: 404,
statusMessage: 'Not Found',
headers: {
date: 'Sun, 17 Apr 2022 08:32:01 GMT',
'content-type': 'text/plain; charset=utf-8',
'content-length': '67',
connection: 'close',
'alt-svc': 'h3=":443"; ma=86400, h3-29=":443"; ma=86400',
'access-control-allow-origin': '*',
'access-control-expose-headers': '*',
'timing-allow-origin': '*',
'cache-control': 'public, max-age=30, s-maxage=30',
'cross-origin-resource-policy': 'cross-origin',
'x-content-type-options': 'nosniff',
'strict-transport-security': 'max-age=31536000; includeSubDomains; preload',
etag: 'W/"32-lMx3rUKeIuANT/sXRkkFSpvfrSw"',
'content-encoding': 'gzip',
age: '1',
'x-served-by': 'cache-fra19165-FRA',
'x-cache': 'MISS',
vary: 'Accept-Encoding',
'cf-cache-status': 'HIT',
'expect-ct': 'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"',
'report-to': '{"endpoints":[{"url":"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=C1t6MOsXXnHH6ddjVKsRby7sNo4EGUVBwiJi88iqaLCRAfYSdQzP6tUrRem9C8clXKDMvs%2BMuary3lzOkjttivd%2BnaimiuF22A9SgCQmzOiKeSatFbCYDDa0bBDCMrtWHgw%3D"}],"group":"cf-nel","max_age":604800}',
nel: '{"success_fraction":0.01,"report_to":"cf-nel","max_age":604800}',
server: 'cloudflare',
'cf-ray': '6fd3cec748c02355-ZRH'
}
}
Info 10:32:01: [32mDownloading from CDN https://cdn.jsdelivr.net/npm/jupyter-matplotlib@1.0.0/dist/index.js into /tmp/tmp-110953TfMIs2xZm73l.js
Info 10:32:01: Error downloading from https://cdn.jsdelivr.net/npm/jupyter-matplotlib@1.0.0/dist/index.js: [a [HTTPError]: Response code 404 (Not Found)
at EventEmitter.<anonymous> (/home/mojert/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:2539074)
at EventEmitter.emit (node:events:390:28)
at /home/mojert/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:2536765
at Immediate.<anonymous> (/home/mojert/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:2536855)
at processImmediate (node:internal/timers:464:21)] {
host: 'cdn.jsdelivr.net',
hostname: 'cdn.jsdelivr.net',
method: 'GET',
path: '/npm/jupyter-matplotlib@1.0.0/dist/index.js',
protocol: 'https:',
url: 'https://cdn.jsdelivr.net/npm/jupyter-matplotlib@1.0.0/dist/index.js',
statusCode: 404,
statusMessage: 'Not Found',
headers: {
date: 'Sun, 17 Apr 2022 08:32:01 GMT',
'content-type': 'text/plain; charset=utf-8',
'content-length': '67',
connection: 'close',
'alt-svc': 'h3=":443"; ma=86400, h3-29=":443"; ma=86400',
'access-control-allow-origin': '*',
'access-control-expose-headers': '*',
'timing-allow-origin': '*',
'cache-control': 'public, max-age=30, s-maxage=30',
'cross-origin-resource-policy': 'cross-origin',
'x-content-type-options': 'nosniff',
'strict-transport-security': 'max-age=31536000; includeSubDomains; preload',
etag: 'W/"32-lMx3rUKeIuANT/sXRkkFSpvfrSw"',
'content-encoding': 'gzip',
age: '1',
'x-served-by': 'cache-fra19165-FRA',
'x-cache': 'MISS',
vary: 'Accept-Encoding',
'cf-cache-status': 'HIT',
'expect-ct': 'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"',
'report-to': '{"endpoints":[{"url":"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=OfTxJxo7WhwzSP5uRkiqifDVXtoktVvXXylAqEwYzEvPk8ROMLgwBB9OoUmVrh1eLGEq3T6pgw0MpfnrJG3jB8s0%2Bg9oA6ALvqqLcDu%2FtYeYKga6wRd4CWF0bxnqf76Y6Do%3D"}],"group":"cf-nel","max_age":604800}',
nel: '{"success_fraction":0.01,"report_to":"cf-nel","max_age":604800}',
server: 'cloudflare',
'cf-ray': '6fd3cec7bbfccc42-ZRH'
}
}
Info 10:32:01: Error downloading from https://unpkg.com/jupyter-matplotlib@1.0.0/dist/index: [a [HTTPError]: Response code 404 (Not Found)
at EventEmitter.<anonymous> (/home/mojert/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:2539074)
at EventEmitter.emit (node:events:390:28)
at /home/mojert/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:2536765
at Immediate.<anonymous> (/home/mojert/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:2536855)
at processImmediate (node:internal/timers:464:21)] {
host: 'unpkg.com',
hostname: 'unpkg.com',
method: 'GET',
path: '/jupyter-matplotlib@1.0.0/dist/index',
protocol: 'https:',
url: 'https://unpkg.com/jupyter-matplotlib@1.0.0/dist/index',
statusCode: 404,
statusMessage: 'Not Found',
headers: {
date: 'Sun, 17 Apr 2022 08:32:01 GMT',
'content-type': 'text/plain; charset=utf-8',
'transfer-encoding': 'chunked',
connection: 'close',
'access-control-allow-origin': '*',
'content-encoding': 'gzip',
etag: 'W/"2c-9YhedqwRtN4tGUGTg2Y9M+PMMMI"',
via: '1.1 fly.io',
'fly-request-id': '01G0VADQPAAEKGVCN6AMQEPG4R-fra',
'cf-cache-status': 'HIT',
age: '1',
'expect-ct': 'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"',
vary: 'Accept-Encoding',
'strict-transport-security': 'max-age=31536000; includeSubDomains; preload',
'x-content-type-options': 'nosniff',
server: 'cloudflare',
'cf-ray': '6fd3cec7ad5123df-ZRH'
}
}
Error 10:32:01: Script source for Widget jupyter-matplotlib@1.0.0 not found
Info 10:32:01: [32mScript for jupyter-matplotlib, is undefined from undefined
Info 10:32:01: [32mFetch Script for {"moduleName":"jupyter-matplotlib","moduleVersion":"1.0.0"}
Info 10:32:01: [32mFetch Script for jupyter-matplotlib
Error 10:32:01: Script source for Widget jupyter-matplotlib@1.0.0 not found
Info 10:32:01: [32mScript for jupyter-matplotlib, is undefined from undefined
Info 10:32:01: [32mFetch Script for {"moduleName":"jupyter-matplotlib","moduleVersion":"1.0.0"}
Info 10:32:01: [32mFetch Script for jupyter-matplotlib
Error 10:32:01: Script source for Widget jupyter-matplotlib@1.0.0 not found
Info 10:32:01: [32mScript for jupyter-matplotlib, is undefined from undefined
Error 10:32:01: Widget load failure [object Object] {
className: 'MPLCanvasModel',
moduleName: 'jupyter-matplotlib',
moduleVersion: '1.0.0',
cdnsUsed: false,
isOnline: true,
timedout: false,
error: {}
}
Error 10:32:01: Widget load failure [object Object] {
className: 'ToolbarModel',
moduleName: 'jupyter-matplotlib',
moduleVersion: '1.0.0',
cdnsUsed: false,
isOnline: true,
timedout: false,
error: {}
}
Error 10:32:01: Widget load failure [object Object] {
className: 'ToolbarModel',
moduleName: 'jupyter-matplotlib',
moduleVersion: '1.0.0',
cdnsUsed: false,
isOnline: true,
timedout: false,
error: {}
}
Issue Analytics
- State:
- Created a year ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Matplotlib Animation not rendering - Stack Overflow
I am using anaconda, jupyter notebooks and also tried using google colab... what is going wrong and how can I fix this? Thank...
Read more >Ipywidgets with matplotlib - Kapernikov
To get started, we set the ipympl backend, which makes matplotlib plots interactive. We do this using a magic command, starting with %....
Read more >widgets — Matplotlib 1.5.1 documentation
To guarantee that the widget remains responsive and not garbage-collected, a reference to the ... When the button is clicked, call func with...
Read more >Interactive figures and asynchronous programming - Matplotlib
Interactive figures and asynchronous programming#. Matplotlib supports rich interactive figures by embedding figures into a GUI window.
Read more >matplotlib.pyplot.show — Matplotlib 3.6.2 documentation
This limitation of command order does not apply if the show is non-blocking or if ... Scatter plot with histograms ... Rendering math...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It also works in vscode (I have just tested it).
This solves my issue, thank you very much !
This is the expected behavior, it behaves like the inline backend does in Jupyter.
plt.plot(X, Y)
shows the figure once,plt.show()
shows it a second time.If you don’t want to see the text repr, you can add a
;
at the end of your cell (works on Jupyter Notebook and JupyterLab but I have not tested it in vscode):