Closed ansaxena1 closed 3 years ago
Hi @ansaxena1, Could you please update your VS Code version, Python extension version, and your jupyter extension version and let me know if this issue persists?
A little confused here. @ansaxena1 you confident m confirmed this was working a few days ago here https://github.com/microsoft/vscode-jupyter/issues/5704#issuecomment-830360433
It was working at that point. I seem to have some intermittent issues where the widget only shows up occasionally for me. Not sure if there is something misconfigured with my environment?
Please update vscode, Jupyter and your portion packages to the latest version
Please reopen if the issue is continuing to happen
I updated vs code to version 1.56.2 and I am still seeing this error
Logs from debug console:
electron/js2c/renderer_init.js:61 The vm module of Node.js is deprecated in the renderer process and will be removed.
t._load @ electron/js2c/renderer_init.js:61
console.ts:137 [Extension Host] (node:20736) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.(Use Code --trace-deprecation ...
to show where the warning was created)
S @ console.ts:137
2console.ts:137 [Extension Host] Terminal not found: 2
S @ console.ts:137
TMScopeRegistry.ts:45 Overwriting grammar scope name to file mapping for scope source.yaml.
Old grammar file: file:///c%3A/Users/ansaxena/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/extensions/yaml/syntaxes/yaml.tmLanguage.json.
New grammar file: vscode-remote://amlext%2Bfilepath%3D%2Btelemetrytrackingid%3D0600e709-ef8b-466e-a84a-63629a83527c%2Bprivatelink%3Dfalse%2Bsessionid%3D2raxr%2Burl%3Dansaxenatestcompute.eastus2.instances.azureml.ms/home/azureuser/.vscode-server/extensions/ms-toolsai.vscode-ai-0.6.22/syntaxes/yaml.tmLanguage.json
register @ TMScopeRegistry.ts:45
console.ts:137 [Extension Host] (node:7995) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.(Use node --trace-deprecation ...
to show where the warning was created)
S @ console.ts:137
console.ts:137 [Extension Host] [2021-05-19T17:50:40.917Z] Information: WebSocket connected to wss://vienna-eastus2.service.signalr.net/client/?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TBmMC0zODhmZjk2ZmFhNTYiLCJhcHBpZGFjciI6IjAiLCJmYW1pbHlfbmFtZSI6IlNheGVuYSIsImdpdmVuX25hbWUiOiJBbm91c2hrYSIsImlwYWRkciI6IjUyLjE3Ny4xNDkuNDkiLCJuYW1lIjoiQW5vdXNoa2EgU2F4ZW5hIiwib2lkIjoiNTcxOWVkMjUtMDE2Ny00NjM5LWEzZTQtZDdkZDMwZWYyN2I0Iiwib25wcmVtX3NpZCI6IlMtMS01LTIxLTIxMjc1MjExODQtMTYwNDAxMjkyMC0xODg3OTI3NTI3LTM3NTcxMjA2IiwicHVpZCI6IjEwMDMyMDAwNjFCOTlGNTAiLCJyaCI6IjAuQVJvQXY0ajVjdkdHcjBHUnF5MTgwQkhiUjBOa3ZLNXRtY0pGa1BBNGpfbHZxbFlhQUhRLiIsInRpZCI6IjcyZjk4OGJmLTg2ZjEtNDFhZi05MWFiLTJkN2NkMDExZGI0NyIsInV0aSI6IkpyMWdPTmxNckVHdXZ4YUZrbXBIQUEiLCJ2ZXIiOiIxLjAiLCJ3aWRzIjoiYjc5ZmJmNGQtM2VmOS00Njg5LTgxNDMtNzZiMTk0ZTg1NTA5IiwieG1zX3RjZHQiOjEyODkyNDE1NDcsIm5iZiI6MTYyMTQ0NjY0MCwiZXhwIjoxNjIxNDUwMjQwLCJpYXQiOjE2MjE0NDY2NDAsImF1ZCI6Imh0dHBzOi8vdmllbm5hLWVhc3R1czIuc2VydmljZS5zaWduYWxyLm5ldC9jbGllbnQvP2h1Yj1zaWduYWxyaHViIn0.FOoQPptOYJ5kO9amdX1i1DejsovbsQPZVT_N67DoSVY.
VM15:3 Rendering widgets on notebook open is not supported.
r @ VM15:3
console.ts:137 [Extension Host] Starting WebSocket: wss://ansaxenatestcompute.eastus2.instances.azureml.ms/api/kernels/1461ba77-ffb2-413b-9828-f87f6e47dbdb
console.ts:137 [Extension Host] Kernel: connected (1461ba77-ffb2-413b-9828-f87f6e47dbdb)
console.ts:137 [Extension Host] Starting WebSocket: wss://ansaxenatestcompute.eastus2.instances.azureml.ms/api/kernels/08e31804-48aa-4401-8fd6-8db7235a4752
console.ts:137 [Extension Host] Kernel: connected (08e31804-48aa-4401-8fd6-8db7235a4752)
console.ts:137 [Extension Host] Starting WebSocket: wss://ansaxenatestcompute.eastus2.instances.azureml.ms/api/kernels/05c5f2fb-e973-4b9f-8275-23b4b3edd55a
VM22:4 IPyWidget kernel initializing...
VM22:4 UI PostOffice Sent IPyWidgets_Ready
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received updateSelectedMarkdownPreviews
VM22:4 Received some pending message updateSelectedMarkdownPreviews
VM22:4 UI PostOffice Received updateSelectedMarkdownPreviews
VM22:4 Received some pending message updateSelectedMarkdownPreviews
console.ts:137 [Extension Host] Kernel: connected (05c5f2fb-e973-4b9f-8275-23b4b3edd55a)
VM22:4 UI PostOffice Received updateSelectedMarkdownPreviews
VM22:4 Received some pending message updateSelectedMarkdownPreviews
VM22:4 UI PostOffice Received updateSelectedMarkdownPreviews
VM22:4 Received some pending message updateSelectedMarkdownPreviews
VM22:4 UI PostOffice Received updateSelectedMarkdownPreviews
VM22:4 Received some pending message updateSelectedMarkdownPreviews
VM22:4 UI PostOffice Received updateSelectedMarkdownPreviews
VM22:4 Received some pending message updateSelectedMarkdownPreviews
VM22:4 UI PostOffice Received updateSelectedMarkdownPreviews
VM22:4 Received some pending message updateSelectedMarkdownPreviews
log.ts:296 ERR Error: [File Watcher (chokidar)] Inotify limit reached (ENOSPC)
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received updateSelectedMarkdownPreviews
VM22:4 Received some pending message updateSelectedMarkdownPreviews
VM22:4 UI PostOffice Received updateSelectedMarkdownPreviews
VM22:4 Received some pending message updateSelectedMarkdownPreviews
VM22:4 UI PostOffice Received updateSelectedMarkdownPreviews
VM22:4 Received some pending message updateSelectedMarkdownPreviews
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received html
VM22:4 Received some pending message html
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received ack-dimension
VM22:4 Received some pending message ack-dimension
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received updateSelectedMarkdownPreviews
VM22:4 Received some pending message updateSelectedMarkdownPreviews
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received updateSelectedMarkdownPreviews
VM22:4 Received some pending message updateSelectedMarkdownPreviews
resourceLoading.ts:112 Error: Unable to read file 'vscode-remote://amlext+filepath=+telemetrytrackingid=0600e709-ef8b-466e-a84a-63629a83527c+privatelink=false+sessionid=2raxr+url=ansaxenatestcompute.eastus2.instances.azureml.ms/vscode-resource?{"requestResourcePath":"/home/azureuser/.vscode-server/extensions/ms-toolsai.jupyter-2021.6.832593372/out/datascience-ui/viewers/node_modules/font-awesome/css/font-awesome.min.css"}' (Error: Unable to resolve non-existing file 'vscode-remote://amlext+filepath=+telemetrytrackingid=0600e709-ef8b-466e-a84a-63629a83527c+privatelink=false+sessionid=2raxr+url=ansaxenatestcompute.eastus2.instances.azureml.ms/vscode-resource?{"requestResourcePath":"/home/azureuser/.vscode-server/extensions/ms-toolsai.jupyter-2021.6.832593372/out/datascience-ui/viewers/node_modules/font-awesome/css/font-awesome.min.css"}')
at o.doReadFileStream (fileService.ts:529)
at async w (resourceLoading.ts:98)
at async p.loadResource (baseWebviewElement.ts:487)
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received updateSelectedMarkdownPreviews
VM22:4 Received some pending message updateSelectedMarkdownPreviews
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received updateSelectedMarkdownPreviews
VM22:4 Received some pending message updateSelectedMarkdownPreviews
VM22:4 UI PostOffice Received updateSelectedMarkdownPreviews
VM22:4 Received some pending message updateSelectedMarkdownPreviews
DevTools failed to load SourceMap: Could not parse content for vscode-webview://06a813a1-9e9f-40c6-8643-9beb1486f92c/ipywidgetsRenderer.js.map: Unexpected end of JSON input
DevTools failed to load SourceMap: Could not parse content for vscode-webview://06a813a1-9e9f-40c6-8643-9beb1486f92c/ipywidgets.js.map: Unexpected end of JSON input
DevTools failed to load SourceMap: Could not parse content for vscode-webview://06a813a1-9e9f-40c6-8643-9beb1486f92c/ipywidgetsKernel.js.map: Unexpected end of JSON input
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received ack-dimension
VM22:4 Received some pending message ack-dimension
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
VM22:4 UI PostOffice Received view-scroll
VM22:4 Received some pending message view-scroll
Output from the cell with the widget:
Can you confirm this works in jupyter, when using the exact same python environment?
Is it conda (you haven't provided that information, you've given xxx
)
Yes this works in Jupyter. I am not using conda? Not sure what details to provide here
could you upload the ipynb after running it in Jupyter (I'd like to see the raw outputs in the ipynb )
Unable to upload a .ipynb file, so here is the notebook content:
@ansaxena1 Please could you confirm you ran this locally in classic Jupyter. Looks like you ran this in Azure Notebooks. Please could you confirm, I'd like the output when you run this notebook in Jupyter Notebooks (classic) or Jupyter Labs, & please confirm it works in there (not VS Code, & not Azure Notebooks or other front end).
I did run this notebook in classic Jupyter (accessed through AML to use my compute instance) and this is the output after running there. Is there something else you'd like me to try running?
@ansaxena1
Jupyter
output panelAlso, is it possible to provide some instructions on how to setup the the Python environment to test this? I'm looking for steps like:
python -m jupyter notebook
)FYI - I'll be looking into this issue & will try to get this resolved for the next release. Thanks
I've updated the title, this works when testing locally heres the evidence. So it seems its only a problem when using remote Jupyter.
Works when I launch VS Code from remote Azure ML Compute as well
here's the evidence:
https://github.com/microsoft/vscode-jupyter/wiki/How-to-test-Azure-AML-Widgets
Problem was, the output renderer selected was text/plain
, vs code rememnbers this, hence widgets were never rendered.
Environment data
Expected behaviour
Widget should be displayed.
Actual behaviour
Output: No renderer could be found for MIME type: application/aml.mini.widget.v1.
Steps to reproduce:
Run the following, replacing source directory and compute target as necessary: