Ask Your Question

Can Jupyter notebook run simultaneously with sage?

asked 2017-06-04 14:39:57 -0500

roi.holtzman gravatar image

updated 2017-06-07 04:42:33 -0500

I'm running Sage notebook and at the same time, I'm trying to run Jupyter notebook. I get the following error:

Last login: Sun Jun  4 22:21:20 on ttys005
Rois-MBP:~ roi$ /anaconda/bin/jupyter_mac.command ; exit;
[W 22:32:09.192 NotebookApp] Unrecognized JSON config file version, assuming version 1
Traceback (most recent call last):
  File "/anaconda/bin/jupyter-notebook", line 6, in <module>
  File "//anaconda/lib/python3.5/site-packages/jupyter_core/", line 267, in launch_instance
    return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
  File "//anaconda/lib/python3.5/site-packages/traitlets/config/", line 595, in launch_instance
  File "<decorator-gen-7>", line 2, in initialize
  File "//anaconda/lib/python3.5/site-packages/traitlets/config/", line 74, in catch_config_error
    return method(app, *args, **kwargs)
  File "//anaconda/lib/python3.5/site-packages/notebook/", line 1069, in initialize
  File "//anaconda/lib/python3.5/site-packages/notebook/", line 837, in init_configurables
  File "//anaconda/lib/python3.5/site-packages/nb_conda_kernels/", line 19, in __init__
    specs = self.find_kernel_specs() or {}
  File "//anaconda/lib/python3.5/site-packages/nb_conda_kernels/", line 129, in find_kernel_specs
    self.conda_info = self._conda_info()
  File "//anaconda/lib/python3.5/site-packages/nb_conda_kernels/", line 29, in _conda_info
    p = subprocess.check_output(["conda", "info", "--json"]
  File "//anaconda/lib/python3.5/", line 626, in check_output
  File "//anaconda/lib/python3.5/", line 693, in run
    with Popen(*popenargs, **kwargs) as process:
  File "//anaconda/lib/python3.5/", line 947, in __init__
    restore_signals, start_new_session)
  File "//anaconda/lib/python3.5/", line 1551, in _execute_child
    raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'conda'
Saving session...
...copying shared history...
...saving history...truncating history files...

Is there a way to run both at the same time? P.S. I'm working on a Mac.

Even when Sage is closed, Jupyter doesn't run. Other apps like spyder do run.

edit retag flag offensive close merge delete


If you are trying to run both but one is via anaconda, not sure ... I think it might be possible for both within Sage 8.0 in the Mac app solution.

kcrisman gravatar imagekcrisman ( 2017-06-05 13:29:51 -0500 )edit

I run Sage via the terminal. But even when Sage is not running Jupyter doesn't work.

roi.holtzman gravatar imageroi.holtzman ( 2017-06-07 04:43:22 -0500 )edit

Hmm, that I can't answer so easily. Usually it's the other way around (conda affects Sage because it gets confused as to which Python). I recommend searching this site for other places where conda gets confused; I do not run it myself so I can't answer more than that.

kcrisman gravatar imagekcrisman ( 2017-06-07 08:08:21 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2018-02-15 17:30:58 -0500

slelievre gravatar image

You can simultaneously run several sessions of the Sage REPL, of the SageNB notebook, and of the Jupyter notebook.

Just open different terminal windows, and in each of them,

  • to run the Sage REPL, run sage
  • to run the SageNB notebook, run sage -n sagenb
  • to run the Jupyter notebook, run sage -n jupyter
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2017-06-04 14:39:57 -0500

Seen: 207 times

Last updated: Feb 15