树莓派jupyter
Jupyter notebooks and jupyter labs are preferred workbenches for many data science projects. For IoT projects, it’s always not possible to connect to the Raspberry PI desktop to access the notebooks. We can access Raspberry PI via console using SSH but for some applications especially for the Computer Vision, we still need some graphical user interface.In this article, I wish to share some of the techniques I found to run the Jupyterlab on a raspberry PI and access it from a remote machine.
对于许多数据科学项目, J笔记本和Jupyter实验室是首选的工作台。 对于物联网项目,始终无法连接到Raspberry PI桌面来访问笔记本。 我们可以使用SSH通过控制台访问Raspberry PI,但对于某些应用程序(尤其是Computer Vision),我们仍然需要一些图形用户界面。在本文中,我希望分享一些我发现的在树莓派PI上运行Jupyterlab的技术。从远程计算机访问它。
安装Jupyter Lab (Install Jupyter Lab)
Connect to your Raspberry PI using SSH. Install all the dependencies. We will use pip3 to install jupyter lab later.
使用SSH连接到您的Raspberry PI。 安装所有依赖项。 稍后我们将使用pip3安装jupyter lab。
$ sudo apt-get update
$ sudo apt-get install python3-pip
$ sudo pip3 install setuptools
$ sudo apt install libffi-dev
$ sudo pip3 install cffi
Install jupyter using pip3. If you are using virtualenv then follow the instructions from the jupyter documentation here.
使用pip3安装jupyter。 如果您使用的是virtualenv,请按照此处的jupyter文档中的说明进行操作。
$ pip3 install jupyterlab
Create a directory for your notebooks and start jupyter lab (optional)
为您的笔记本创建目录并启动jupyter lab(可选)
$ mkdir notebooks
$ jupyter lab --notebook-dir=~/notebooks
Alternately you can also start the jupyterlab from any direc