question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

An UI(maybe) bug causing .ipynb files can not be displayed

See original GitHub issue

Type: Bug

I mainly use ssh for remote development. The bug is, when I directly open an .ipynb file on the ssh server, it can be opened, run, and can NOT be displayed. Oddly enough, I then try to open an .ipynb file locally, it successfully displayed and the .ipynb file on the ssh server also displayed! However, when I close the Vscode window where I open the local .ipynb file, and then I try to open an another .ipynb file on the ssh server, again, it can not be displayed, but can be run. Also, after closing the already opened file, it can not be displayed again.

I tried re-install Vscode but it doesn’t work. I’m currently using the latest windows 11. All Vscode and its extensions are the latest. The bug doesn’t exist on MAC OS Vscode.

VS Code version: Code 1.73.1 (6261075646f055b99068d3688932416f2346dd3b, 2022-11-09T04:27:29.066Z) OS version: Windows_NT x64 10.0.22621 Modes: Sandboxed: No Remote OS version: Linux x64 4.15.0-188-generic

System Info
Item Value
CPUs 12th Gen Intel® Core™ i5-12600K (16 x 3686)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) undefined
Memory (System) 31.79GB (21.41GB free)
Process Argv –folder-uri vscode-remote://ssh-remote%2B8%E5%8F%B7%E6%9C%BA/home/zhuhaoran/scBERT --crash-reporter-id 9f00aa13-d232-4186-acb7-cea9d07f898e
Screen Reader no
VM 0%
Item Value
Remote SSH: 8号机
OS Linux x64 4.15.0-188-generic
CPUs Intel® Xeon® Gold 5120 CPU @ 2.20GHz (112 x 2639)
Memory (System) 503.36GB (460.20GB free)
VM 0%
Extensions (27)
Extension Author (truncated) Version
vscode-language-pack-zh-hans MS- 1.73.11090913
jupyter-keymap ms- 1.0.0
remote-containers ms- 0.262.3
remote-ssh ms- 0.92.0
remote-ssh-edit ms- 0.84.0
remote-wsl ms- 0.72.0
remote-explorer ms- 0.0.2
vscode-todo-highlight way 1.0.5
material-theme zhu 3.15.6
shell bbe 0.3.0
gitlens eam 13.1.0
vscode-pull-request-github Git 0.54.1
todo-tree Gru 0.0.220
nbpreviewer jit 1.2.2
kite kit 0.147.0
rainbow-csv mec 3.3.0
vscode-language-pack-zh-hans MS- 1.73.11020948
python ms- 2022.18.2
vscode-pylance ms- 2022.11.30
jupyter ms- 2022.9.1303220346
jupyter-keymap ms- 1.0.0
jupyter-renderers ms- 1.0.12
vscode-jupyter-cell-tags ms- 0.1.6
vscode-jupyter-slideshow ms- 0.1.5
r-debugger RDe 0.4.7
r REd 2.6.1
shellcheck tim 0.28.2

(2 theme extensions excluded)

A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
vscorecescf:30445987
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30410667
cppdebug:30492333
vsclangdc:30486549
c4g48928:30535728
dsvsc012cf:30540253
azure-dev_surveyone:30548225
pyindex848cf:30577861
nodejswelcome1cf:30587006
fc301958:30595537
282f8724:30602487
gswce1:30612156
iaj6b796:30613358
dbltrim-noruby:30604474
f6dab269:30613381

Issue Analytics

  • State:open
  • Created 10 months ago
  • Reactions:1
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
roblourenscommented, Nov 29, 2022

it can be opened, run, and can NOT be displayed.

Can you tell me what you mean exactly? Is it that the outputs don’t show up? Maybe you can share a screenshot?

0reactions
yowucommented, Jan 2, 2023

I met the issue too. It works in localhost but desn’t work in a remote server. There is error in dev-log in the remote case. Hope this is related.

ERR 'crypto.subtle' is not available so webviews will not work. This is likely because the editor is not running in a secure context (https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts).: Error: 'crypto.subtle' is not available so webviews will not work. This is likely because the editor is not running in a secure context (https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts).
    at t (http://192.168.50.109:8000/stable-e8a3071ea4344d9d48ef8a4df2c097372b0c5161/static/out/vs/workbench/workbench.web.main.js:770:25540)
    at new R (http://192.168.50.109:8000/stable-e8a3071ea4344d9d48ef8a4df2c097372b0c5161/static/out/vs/workbench/workbench.web.main.js:1324:3987)
    at l.j (http://192.168.50.109:8000/stable-e8a3071ea4344d9d48ef8a4df2c097372b0c5161/static/out/vs/workbench/workbench.web.main.js:608:1296)
    at l.createInstance (http://192.168.50.109:8000/stable-e8a3071ea4344d9d48ef8a4df2c097372b0c5161/static/out/vs/workbench/workbench.web.main.js:608:788)
    at y.createWebviewElement (http://192.168.50.109:8000/stable-e8a3071ea4344d9d48ef8a4df2c097372b0c5161/static/out/vs/workbench/workbench.web.main.js:2182:41321)
    at Za.kb (http://192.168.50.109:8000/stable-e8a3071ea4344d9d48ef8a4df2c097372b0c5161/static/out/vs/workbench/workbench.web.main.js:1956:6858)
    at Za.hb (http://192.168.50.109:8000/stable-e8a3071ea4344d9d48ef8a4df2c097372b0c5161/static/out/vs/workbench/workbench.web.main.js:1956:642)
    at Za.createWebview (http://192.168.50.109:8000/stable-e8a3071ea4344d9d48ef8a4df2c097372b0c5161/static/out/vs/workbench/workbench.web.main.js:1943:915)
    at http://192.168.50.109:8000/stable-e8a3071ea4344d9d48ef8a4df2c097372b0c5161/static/out/vs/workbench/workbench.web.main.js:2412:7598
    at De.hc (http://192.168.50.109:8000/stable-e8a3071ea4344d9d48ef8a4df2c097372b0c5161/static/out/vs/workbench/workbench.web.main.js:2412:8001)
Read more comments on GitHub >

github_iconTop Results From Across the Web

[Bug]: Problem opening .ipynb files (Jupyter Notebook) #5475
Code-server keeps trying to open the file, or creating the file, never finishes loading on screen. Logs. No response. Screenshot/Video. image ...
Read more >
Why does jupyter notebook server keeps crashing when ...
The moment I open the .ipynb file the server already crashes so I don' know what happens there. If i'm not mistaken terminal...
Read more >
Can't Open Jupyter Notebook (No Display | Arch Linux)
Hi,. I'm currently using Arch Linux for my main OS. In my other os, Windows, i can open Jupyter notebooks without any problem....
Read more >
Jupyter shows nothing, no files, no filder
Hi, jupyter was working fine in my side before. but after restart laptop, the jupyter suddenly not able to show files at all....
Read more >
What to do when things go wrong - The Jupyter Notebook
Jupyter fails to start ; If it can't find jupyter , you may need to configure your ; If Jupyter gives...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found