I installed jupyter notebook via anaconda, and also installed nb-conda and nbextension.
When notebook is started from command line, it works just fine. But when it’s started as a service, nb-conda will encounter error and fail to load. Plus, if I open a terminal, only a “#” will show up instead of “(base)user@hostname:path#”. The terminal work normally after entering “su user”.
Here is my service configuration:
And here is the output log:
[E 00:20:04.919 NotebookApp] [nb_conda_kernels] couldn’t call conda:
[Errno 2] No such file or directory: ‘conda’: ‘conda’
[I 00:20:04.919 NotebookApp] [nb_conda_kernels] enabled, 0 kernels found
[I 00:20:05.204 NotebookApp] [jupyter_nbextensions_configurator] enabled 0.4.1
[I 00:20:05.237 NotebookApp] JupyterLab extension loaded from /root/anaconda3/lib/python3.7/site-packages/jupyterlab
[I 00:20:05.238 NotebookApp] JupyterLab application directory is /root/anaconda3/share/jupyter/lab
[I 00:20:05.380 NotebookApp] [nb_conda] enabled
[I 00:20:05.381 NotebookApp] Serving notebooks from local directory: /root/.jupyter/notebook
[I 00:20:05.381 NotebookApp] The Jupyter Notebook is running at:
[I 00:20:05.381 NotebookApp] http://127.0.0.1:8888/jupyter/
[I 00:20:05.381 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).