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.

[Bug]: Problem opening .ipynb files (Jupyter Notebook)

See original GitHub issue

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser: Microsoft Edge / Chrome / Firefox / Vivaldi / Safari
  • Local OS: Windows 10.0.19044.1826 / macOS Big Sur 11.6.8
  • Remote OS: Raspberry Pi OS Lite (64-bit) 2022-04-04 (Kernel: 5.15 | Debian: 11 ‘bullseye’)
  • Remote Architecture: arm64
  • code-server --version: 4.5.2

Steps to Reproduce

  1. open code-server
  2. try to open .ipynb file
  3. trying to create an .ipynb file

Expected

The file should open and be viewable

Actual

Code-server keeps trying to open the file, or creating the file, never finishes loading on screen.

Logs

No response

Screenshot/Video

image

Does this issue happen in VS Code or GitHub Codespaces?

  • I cannot reproduce this in VS Code.
  • I cannot reproduce this in GitHub Codespaces.

Are you accessing code-server over HTTPS?

  • I am using HTTPS.

Notes

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:45 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
c-dasqcommented, Sep 1, 2022

Hi all, I was able to simulate almost all possible cases in an orderly manner, and I was unable to replicate the problem:

  • Web Browser: Firefox / Chrome / Chromium-based spinoffs
  • Remote OS: Raspberry Pi OS Lite / Ubuntu Server / Containers
  • Local OS: Windows 10 / Windows 11 / MacOs / iPadOs/ Ubuntu / Raspberry Pi Desktop / Android

It didn’t really work well in only two cases:

  • Firefox on Android 9 (sorry, I don’t have a newer version)
  • LXC Ubuntu Server container (I’m sure it’s a ProxMox problem)

I suspect that when I generated the report for this bug, I had left the bind-addr setting at 0.0.0.0:8080, I didn’t realize that port forwarding via SSH wasn’t working (I use tmux); or I don’t know if I made some other mistake.

I want to thank you all for the support, and if no one has any more comments, I will close this case.

Thank you very much,

code-server-jupyter-working

2reactions
code-ashercommented, Aug 31, 2022

There is supposed to be a popup warning on startup when using insecure contexts saying that certain functionality will not work because the browser does not allow them but we should instead make that popup appear at the point of trying to perform an action so it is more obvious why a certain feature is not working. So instead we would make it show every time a web view fails to open, when paste fails, and other things that will fail due to insecure contexts. In the specific case of web views it might be best to show that message right in the web view instead of a popup.

Also we should change the error message in the console to specifically say whether an insecure context is the problem instead of just “can’t compute”.

Read more comments on GitHub >

github_iconTop Results From Across the Web

My notebook(.ipynb) won't open! · Issue #10941 - GitHub
I closed the notebook, restarted Jupyter and also my computer. Now I can't open my notebook! I have a lot of work that...
Read more >
What to do when things go wrong - The Jupyter Notebook
If you're using a menu shortcut or Anaconda launcher to start it, try opening a terminal or command prompt and running the command...
Read more >
IPython Notebook error: Error loading notebook - Stack Overflow
I solved this problem by changing the ownership of the ~/.local/share/jupyter directory from root to user. from https://github.com/ipython/ipython/issues/8997.
Read more >
Solve problems with Jupyter Notebooks - coursera.support
If your Jupyter Notebook files have disappeared, it means the course staff published a new version of a given notebook to fix problems...
Read more >
Jupyter notebook browser page not loading
I have fixed this by using jupyter lab instead of jupyter notebook at the command prompt. You can then navitage to localhost:8888/tree to...
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