Error while running jupyter with sage
I just recently upgraded my sage to sage 8.9
However, opening jupyter notebook from sage has stopped functioning.
Previously I used to be able to do the following:
$ sage -n jupyter
And this would open jupyter notebook for me with the option of using either sage or python kernel.
When I do the same thing, I now get the following error:
Please wait while the Sage Jupyter Notebook server starts...
[I 13:51:32.844 NotebookApp] Using MathJax: nbextensions/mathjax/MathJax.js
[I 13:51:34.199 NotebookApp] Serving notebooks from local directory: /Users/sunroseshrestha
[I 13:51:34.200 NotebookApp] The Jupyter Notebook is running at:
[I 13:51:34.200 NotebookApp] http://localhost:8888/?token=9ab97f6290fb5f9743fc5f08ff0f296bced77cc85c2f2763
[I 13:51:34.200 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip
confirmation).
Traceback (most recent call last):
File "/Applications/SageMath/src/bin/sage-notebook", line 267, in <module>
launcher(unknown)
File "/Applications/SageMath/src/bin/sage-notebook", line 99, in __init__
main(argv)
File "/Applications/SageMath/local/lib/python3.7/site-packages/jupyter_core/application.py", line 266, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "/Applications/SageMath/local/lib/python3.7/site-packages/traitlets/config/application.py", line 658, in launch_instance
app.start()
File "/Applications/SageMath/local/lib/python3.7/site-packages/notebook/notebookapp.py", line 1791, in start
self.launch_browser()
File "/Applications/SageMath/local/lib/python3.7/site-packages/notebook/notebookapp.py", line 1731, in launch_browser
browser = webbrowser.get(self.browser or None)
File "/Applications/SageMath/local/lib/python3.7/webbrowser.py", line 42, in get
register_standard_browsers()
File "/Applications/SageMath/local/lib/python3.7/webbrowser.py", line 530, in register_standard_browsers
raw_result = subprocess.check_output(cmd, stderr=subprocess.DEVNULL)
File "/Applications/SageMath/local/lib/python3.7/subprocess.py", line 395, in check_output
**kwargs).stdout
File "/Applications/SageMath/local/lib/python3.7/subprocess.py", line 472, in run
with Popen(*popenargs, **kwargs) as process:
File "/Applications/SageMath/local/lib/python3.7/subprocess.py", line 775, in __init__
restore_signals, start_new_session)
File "/Applications/SageMath/local/lib/python3.7/subprocess.py", line 1522, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
NotADirectoryError: [Errno 20] Not a directory: 'xdg-settings'
How would I fix this?