-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jupyter Notebook is broken in Firefox #4500
Comments
Seems to be an issue with the most recent release. Using an older release works:
|
thank you! this fixed it. This is the third thread I found about this issue, btw. |
I also have the same problem, only in Firefox. I don't think using an older version of notebook is a fix, though. Does anyone know why this happens? |
Confirmed not working on Firefox 67 (MacOS Mojave) Cause is this commit, which changed the way Jupyter Notebook is opened in the browser: Instead of opening Safari and Chrome have no problems with this redirect, but Firefox does. I have edited the By the way: this same problem exists in jupyter lab |
the nbserver--open.html is generated new each time the notebook is run so editing the html file only works for a few hours. What exactly is it about firefox that it can't handle the redirect? I was trying to tweak the code directly(open_url, default_url?) but spent hours for such a stupid little fix. At some point the /tree is needed but just not in the final html file creation. I am a newbie so this was definitely learning opp for me. I am following along on my own machine. |
This solved my issue too, after spending much time diagnosing and attempting several options in vain! |
Still an issue in new versions of notebook (for Opera), had to go back to 5.6.0 |
I have the same issue! |
This avoids putting the authentication token into a command-line argument to launch the browser, where it's visible to other users. Filesystem permissions should ensure that only the user who started the notebook can use this route to authenticate. Thanks to Dr Owain Kenway for suggesting this technique.
I am having the same issue ("Access to file was denied") on Ubuntu 18.04.3 (and 16.04) using Firefox and Opera. My specific issue is because Firefox was installed using Snap. Firefox can't access anything outside the home directory. Moving the nbserver--open.html file to the /home/user/ directory let both Firefox and Opera open it. It looks like this is the intended way snap-installed apps are meant to function, so I'm not sure there's a good fix for this. |
I had the same issue using Opera on Ubuntu 18.04 and this fixed it ! |
Also broken in notebook=6.0.1 & 6.0.0 when using Chromium on Ubuntu 18.04.3. Had to install version 5.6.0 as suggested... seems weird that there has been a major version change but the issue persists. Make me wonder what I'm doing wrong? :-/ |
Also broken for me:
|
I consider the same problem with Firefox since some versions currently I am on FF 70 under Arch Linux. I have to copy the URL and directly open it in the browser address field. |
I have the same issue on Windows Subsystem for Linux (WSL). Because browsers running in Windows can't access files in WSL. I hope to choose either URL access or redirect in settings. |
Setting |
yes this command helped me with Ubuntu 20.04 and Chromium / 15th July 2020 |
I was also facing the same issue i changed the default setting of browser from Firefox to Chrome it will continue to work |
Not working for me Ubuntu 18.04 |
I have found this is AppArmor for me on ubuntu 20.04, if my default browser is mozilla it opens fine, I have chromium installed from snap store. if you do a: tail -f /var/log/syslog you may see the reason as below. I have not looked to modify the policy just yet to allow. apparmor="DENIED" operation="open" profile="snap.chromium.chromium" name="/home/username/.local/share/jupyter/runtime/nbserver-55637-open.html" pid=3385 comm="ThreadPoolForeg" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000 |
I had this same problem Kubuntu 20.10 Two solutions:
Open that file, uncomment this line and set it to False (it is commented and set to True by default)
Can we push this upstream? It has been almost two years since this issue is open |
Doesn't seem to work for |
The real reason is that your browser (chrome, chromium, opera, ...) is installed as a snap application. Snap prevents access to hidden files. The files are in Alternatively for the Jupyter Lab, I patched this file: use_redirect_file = Bool(False, config=True,
help="""Disable launching browser by redirect file |
I had the same problem. Ubuntu 20.04.3 LTS This was the solution in my case:
Make sure that this configuration parameter starts at the beginning of the line. If you leave one space at the beginning of the line, you will get the message that access to the file was denied. |
This works for jupyter notebook, but when launching jupyter lab I still get an access denied, is there an additional config setting that needs to be set for jupyter lab? |
The corresponding issue with jupyter lab is solved by:
That should do it, good luck! Thanks to @radenkovpy for the actual solution, I merely extrapolated it to jupyter lab. |
This solved the issue for me. Ubuntu 22.04, Anaconda env, Firefox browser. |
When I run 'jupyter notebook' it will open the html file in the filesystem and will be displayed incorrectly in the Firefox 67 and 68 (current Betas, I haven't tested 66). This issue does not happen in Chrome or Safari.
file:///Users/eduardomorales/Library/Jupyter/runtime/nbserver-81921-open.html
The only way to fix this is to access the URL provided in the terminal instead.
http://localhost:8888/?token=57035d2f78d7578f424d28e280855612e6d4b6cfb73f5de7
The text was updated successfully, but these errors were encountered: