How do I get rid of extra instances of firefox and get jupyter notebooks to work?

sy flag

When I run it in the base environment everything is fine but when I run it in any virtual environment firefox throws this error:

Access to the file was denied

The file at /run/user/1000/snap.jupyter/jupyter/nbserver-6259-open.html is not readable.

    It may have been removed, moved, or file permissions may be preventing access.

base environment is leading to:

file:///home/$USER/.local/share/jupyter/runtime/nbserver-7866-open.html I'm not sure why this is different.

jupyter notebook -V in base is giving 6.5.4, and in venv is giving 5.7.8

I've tried reinstalling firefox from snap and web and somehow it seems I've ended up with three different instances of firefox. I think this because when I go to "default apps" the drop down menu shows this

I tried running jupyter notebook --generate-config but the config file it generates does not have ac.NotebookApp.use_redirect_file = line to set false

I have also tried

jupyter lab clean --all
pip3 install jupyterlab --force-reinstall

but alas, jupyter still does the same thing.

How do I delete extra instances of firefox and make sure jupyter behaves the same in virtual environments as base environment?

Update: So I goofed and must have installed jupyter with snap. Ran sudo snap remove --purge jupyter Now all my notebooks open wthout snap in their directory. Still not sure how to fix duplicate firefoxes.

I sit in a Tesla and translated this thread with Ai:


Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.