ttist25
asked on
Start Jupyter Notebook at Boot Raspbian/BerryConda3
Good morning!
I have installed raspbian and berryconda on a pi3.
I'm failing miserably at getting the jupyter notebook server to run at boot.
Here is some info that might help:
Here is the bottom of my rc.local:
# -------------------------- ---------- ---------- ---------- ---------- --
# My Configuration
#------------------------- ---------- ---------- ---------- ---------- ----
# Start Jupyter Server at boot
/home/pi/berryconda3/bin/j upyter-not ebook
exit 0
Here is what I get when I type "which jupyter":
/home/pi/berryconda3/bin/j upyter
Here's my path:
/home/pi/berryconda3/bin:/ usr/local/ sbin:/usr/ local/bin: /usr/sbin: /usr/bin:/ sbin:/bin: /usr/local /games:/us r/games
And finally if I type "jupyter-notebook" from an ssh session as user pi - it starts the jupyter notebook server w/o issue
Thanks in advance for any help. This is driving me nutz! :D
I have installed raspbian and berryconda on a pi3.
I'm failing miserably at getting the jupyter notebook server to run at boot.
Here is some info that might help:
Here is the bottom of my rc.local:
# --------------------------
# My Configuration
#-------------------------
# Start Jupyter Server at boot
/home/pi/berryconda3/bin/j
exit 0
Here is what I get when I type "which jupyter":
/home/pi/berryconda3/bin/j
Here's my path:
/home/pi/berryconda3/bin:/
And finally if I type "jupyter-notebook" from an ssh session as user pi - it starts the jupyter notebook server w/o issue
Thanks in advance for any help. This is driving me nutz! :D
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Yep using su to start a process as another user is the right thing to do. Creating an intermediate script in order to keep /etc/rc.local is also a good idea.
Well if you ever want to autostart an application on a pi with a screen and desktop you have some pointers.
Happy notebooking.
Well if you ever want to autostart an application on a pi with a screen and desktop you have some pointers.
Happy notebooking.
ASKER
The jupyer notebook command actually starts a "notebook server" that can then be accessed from a web browser. My goal was to have a headless PI sitting over on the shelf that I could access from any computer on my network. I thought it would be a great use of a PI3 that was sitting in my desk drawer doing nothing (it remains to be seen whether it's actually good in practice :D).
Anyway, I managed to get this working after talking to my son. Here is his solution:
Open in new window
Open in new window
So far this seems to be working great. If the power goes out, no worries, the notebook server starts up all on its own and I can browse to the PI and access the notebooks I've created. Again, thanks for the help!