jupyter-xeus / xeus-cling

Jupyter kernel for the C++ programming language
BSD 3-Clause "New" or "Revised" License
3.09k stars 300 forks source link

How to start jupyter at conda using non root at system boot up #99

Open wangmu0579 opened 6 years ago

wangmu0579 commented 6 years ago

i tried add following cmd at /etc/rc.local but not work. su username -c 'conda activate cling && jupyter notebook'

'conda activate cling && jupyter notebook' cmd works as non root user in console mode. I installed all conda and jupyter using nonroot. could you help? Thanks

SylvainCorlay commented 6 years ago

I can try help you troubleshoot this issue (although it is probably not directly related to cling).

Could you provide some more details about the failure?

wangmu0579 commented 6 years ago

sorry,the cmd should be:source activate cling &&jupyter notebook But still not work.

SylvainCorlay commented 6 years ago

I would be happy to help. Can you provide more details than "does not work" :)

wangmu0579 commented 6 years ago

I changed my cmd in /etc/rc.local which the cmd can start jupyter correcrly as root but still not work at system boot.

"source /home/wangmu0579/miniconda2/envs/cling/bin/activate cling && jupyter notebook --config=/home/wangmu0579/.jupyter/jupyter_notebook_config.py --no-browser --notebook-dir=/home/wangmu0579/Notebook --allow-root &"

I don't know how to get error logs at system boot.

wangmu0579 commented 6 years ago

Actually my problem is how to start cling with jupyter at system book time. How you did this?

gouarin commented 6 years ago

Could you explain why you want to do that? What is your test case?

Le 14 janv. 2018 12:12 PM, "wangmu0579" notifications@github.com a écrit :

Actually my problem is how to start cling with jupyter at system book time. How you did this?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/QuantStack/xeus-cling/issues/99#issuecomment-357504234, or mute the thread https://github.com/notifications/unsubscribe-auth/AHKaFRzDD79u1-FBeeB9SI1tnevonEGsks5tKeEBgaJpZM4RdiJM .

wangmu0579 commented 6 years ago

I just don't want to start jupyter cling manually every system restart. Maybe I need to decrease the times of the restart.

gouarin commented 6 years ago

Did you try to use nteract (https://nteract.io/desktop) ? You can open a notebook without start a Jupyter. I never use it with xeus-cling so I'm not sure it works. But tell us if you like it and we will add xeus-cling kernel if needed.