- This topic has 3 replies, 3 voices, and was last updated Jun 16-7:48 pm by Splined.
June 16, 2019 at 11:21 am #23114MemberSplined
So, this seems like it should have an answer somewhere in the forum, but I haven’t been able to find anything relevant.
I just installed Python Anaconda and it is working fine *except* when I try to open a notebook. This should open in the default browser, but it opens in Geany instead. The url will be something like </home/splined/.run/jupyter/nbserver-229774-open.html> I can manually type this into the browser and it will open just fine, but obviously a pain.
in the control centerI have checked
* Preferred Applications
** Web Browser: firefox-esr.desktop
* Alternatives Configurator
** www-browser: /usr/bin/links2
** x-www-browser: /usr/bin/firefox-esr
which both seem reasonable.
Is there some other setting I am missing?
Persist Root EnabledJune 16, 2019 at 11:41 am #23120Forum Adminanticapitalista
You might need to edit ./config/mimeapps.list
Have a look at arch wiki – https://wiki.archlinux.org/index.php/Xdg-utils
- This reply was modified 1 year, 3 months ago by anticapitalista. Reason: typo fixed
Philosophers have interpreted the world in many ways; the point is to change it.
antiX with runit - leaner and meaner.June 16, 2019 at 3:04 pm #23142Memberskidoo
The url will be something like </home/sp…
In my book, that’s not a URL (it lacks a scheme).
It is a file path (or, depending on who ya ask, a network-path reference)
Anyhoo, for the jupyter commandline command, you should not need to supply a “url”.
The notebook server can be run with a variety of command line arguments. A list of available options can be found below in the options section. Defaults for these options can also be set by creating a file named jupyter_notebook_config.py in your Jupyter folder. The Jupyter folder is in your home directory, ~/.jupyter
To create a jupyter_notebook_config.py file, with all the defaults commented out, you can use the following command line:
$ jupyter notebook –generate-config
NotebookApp.browser : Unicode
Specify what command to use to invoke a web browser when opening the notebook.
If not specified, the default browser will be determined by the [python] webbrowser standard library module, which allows setting of the BROWSER environment variable to override it.June 16, 2019 at 7:48 pm #23160MemberSplined
Should have mentioned I was launching the notebook from the anaconda-navigator interface, not the cli.
anticaptialista: I added the line “text/html=firefox-esr.desktop” to the mimeapps.list file and that seems to do the trick. Now launches the browser. Thanks for the info on xdg-utils, very handy.
skidoo: You’re right. As noted above, it isn’t a url but a txt/html file.
That github issue looks exactly on point. I just started messing with anaconda, so I’m sure I’ll be doing a lot of reading/tweaking with that setup guide.
Only two things are infinite. The universe and my ignorance of Linux.
- This reply was modified 1 year, 3 months ago by Splined.
- You must be logged in to reply to this topic.