Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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'

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 nbextensions/mathjax/MathJax.js

[I 13:51:34.199 NotebookApp] Serving notebooks from local directory: /Users/sunroseshrestha /Users/sunroseshrestha

[I 13:51:34.200 NotebookApp] The Jupyter Notebook is running at: at:

[I 13:51:34.200 NotebookApp] http://localhost:8888/?token=9ab97f6290fb5f9743fc5f08ff0f296bced77cc85c2f2763 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). confirmation).

Traceback (most recent call last): last):

File "/Applications/SageMath/src/bin/sage-notebook", line 267, in <module> launcher(unknown) launcher(unknown)

File "/Applications/SageMath/src/bin/sage-notebook", line 99, in __init__ main(argv) main(argv)

File "/Applications/SageMath/local/lib/python3.7/site-packages/jupyter_core/application.py", line 266, in launch_instance launch_instance

return super(JupyterApp, cls).launch_instance(argv=argv, *kwargs) **kwargs)

File "/Applications/SageMath/local/lib/python3.7/site-packages/traitlets/config/application.py", line 658, in launch_instance app.start() launch_instance

app.start()

File "/Applications/SageMath/local/lib/python3.7/site-packages/notebook/notebookapp.py", line 1791, in start self.launch_browser() self.launch_browser()

File "/Applications/SageMath/local/lib/python3.7/site-packages/notebook/notebookapp.py", line 1731, in launch_browser launch_browser

browser = webbrowser.get(self.browser or None) None)

File "/Applications/SageMath/local/lib/python3.7/webbrowser.py", line 42, in get register_standard_browsers() 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) stderr=subprocess.DEVNULL)

File "/Applications/SageMath/local/lib/python3.7/subprocess.py", line 395, in check_output *kwargs).stdout **kwargs).stdout

File "/Applications/SageMath/local/lib/python3.7/subprocess.py", line 472, in run with Popen(popenargs, *kwargs) as process: process:

File "/Applications/SageMath/local/lib/python3.7/subprocess.py", line 775, in __init__ restore_signals, start_new_session) 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) err_filename)

NotADirectoryError: [Errno 20] Not a directory: 'xdg-settings'

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?

click to hide/show revision 4
None

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''xdg-settings' ```

How would I fix this?

click to hide/show revision 5
None

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...

starts... [I 13:51:32.844 NotebookApp] Using MathJax: nbextensions/mathjax/MathJax.js

nbextensions/mathjax/MathJax.js [I 13:51:34.199 NotebookApp] Serving notebooks from local directory: /Users/sunroseshrestha

/Users/sunroseshrestha [I 13:51:34.200 NotebookApp] The Jupyter Notebook is running at:

at: [I 13:51:34.200 NotebookApp] http://localhost:8888/?token=9ab97f6290fb5f9743fc5f08ff0f296bced77cc85c2f2763

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).

confirmation). Traceback (most recent call last):

last): File "/Applications/SageMath/src/bin/sage-notebook", line 267, in <module> launcher(unknown)

launcher(unknown) File "/Applications/SageMath/src/bin/sage-notebook", line 99, in __init__ main(argv)

main(argv) File "/Applications/SageMath/local/lib/python3.7/site-packages/jupyter_core/application.py", line 266, in launch_instance

launch_instance return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)

**kwargs) File "/Applications/SageMath/local/lib/python3.7/site-packages/traitlets/config/application.py", line 658, in launch_instance

app.start()

launch_instance app.start() File "/Applications/SageMath/local/lib/python3.7/site-packages/notebook/notebookapp.py", line 1791, in start self.launch_browser()

self.launch_browser() File "/Applications/SageMath/local/lib/python3.7/site-packages/notebook/notebookapp.py", line 1731, in launch_browser

launch_browser browser = webbrowser.get(self.browser or None)

None) File "/Applications/SageMath/local/lib/python3.7/webbrowser.py", line 42, in get register_standard_browsers()

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)

stderr=subprocess.DEVNULL) File "/Applications/SageMath/local/lib/python3.7/subprocess.py", line 395, in check_output **kwargs).stdout

**kwargs).stdout File "/Applications/SageMath/local/lib/python3.7/subprocess.py", line 472, in run with Popen(popenargs, *kwargs) Popen(*popenargs, **kwargs) as process:

process: File "/Applications/SageMath/local/lib/python3.7/subprocess.py", line 775, in __init__ restore_signals, start_new_session)

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)

err_filename) NotADirectoryError: [Errno 20] Not a directory: 'xdg-settings' ```

How would I fix this?