Posts

Showing posts with the label Jupyter

[How To] Run Jupyter Lab from a Remote server

Image
Step 1: Launch Jupyter Lab from the Remote server with the command $ jupyter-lab --no-browser --ip="0.0.0.0" [I 2022-11-24 15:03:36.648 ServerApp] jupyterlab | extension was successfully linked. [I 2022-11-24 15:03:36.711 ServerApp] nbclassic | extension was successfully linked. [I 2022-11-24 15:03:37.783 ServerApp] notebook_shim | extension was successfully linked. [I 2022-11-24 15:03:37.910 ServerApp] notebook_shim | extension was successfully loaded. [I 2022-11-24 15:03:37.917 LabApp] JupyterLab extension loaded from /home/pi/.local/lib/python3.9/site-packages/jupyterlab [I 2022-11-24 15:03:37.917 LabApp] JupyterLab application directory is /home/pi/.local/share/jupyter/lab [I 2022-11-24 15:03:37.941 ServerApp] jupyterlab | extension was successfully loaded. [I 2022-11-24 15:03:37.963 ServerApp] nbclassic | extension was successfully loaded. [I 2022-11-24 15:03:37.965 ServerApp] Serving notebooks from local directory: /home/pi/Documents Step 2: Open a browser window from y...

[How To] Upgrade to Python 3.9 in Google Colab

Image
Google Colaboratory , or “Colab” for short, is a product from Google Research. Colab allows anybody to write and execute arbitrary python code through the browser and is especially well suited to machine learning, data analysis, and education. More technically, Colab is a hosted Jupyter notebook service that requires no setup to use while providing access free of charge to computing resources, including GPUs. By default, it starts the runtime with Python version 3.7. If you want to upgrade the version in your current notebook, then follow these steps in the given order: 1) !python --version Python 3.7.13 2) !sudo apt-get update -y Get:1 http://ppa.launchpad.net/c2d4u.team/c2d4u4.0+/ubuntu bionic InRelease [15.9 kB] Hit:2 http://ppa.launchpad.net/cran/libgit2/ubuntu bionic InRelease Get:3 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/ InRelease [3,626 B] Get:4 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu bionic InRelease [15.9 kB] Hit:5 http://ppa.launchpad.net/graphics-d...

[Solved] Jupyter notebook raises Module Not Found Error

Image
I recently ran into issues on my MacBook with Jupyter notebooks, where it could not find any packages and was throwing "ModuleNotFoundError: No module named ****" for several libraries. I already had these packages installed but somehow Jupyter python kernel could not find it. I tried to install these packages in the notebook cells with the command !pip install **** but this did not help either. I also tried %brew reinstall jupyterlab and that did not work as well. Finally, I found a fix. Solution: Step-1: Install/upgrade jupyter packages: % pip3 install --upgrade jupyter notebook jupyterlab Step-2: Run jupyter with this command: % jupyter-lab

Install TensorFlow 1.8 on Raspberry Pi 3 Model B+ [Complete Instruction Manual 2018]

Image
sudo apt-get update sudo apt-get upgrade sudo apt-get dist-upgrade sudo apt-get install python-pip python-dev wget https://www.piwheels.org/simple/tensorflow/tensorflow-1.8.0-cp27-none-linux_armv7l.whl sudo pip install tensorflow-1.8.0-cp27-none-linux_armv7l.whl sudo pip uninstall mock sudo pip install mock /* Test program HelloTensor.py */ sudo pip install pillow sudo pip install lxml sudo pip install jupyter sudo pip install matplotlib sudo pip install protobuf git clone https://github.com/tensorflow/models.git cd models cd research protoc object_detection/protos/*.proto --python_out=. export PYTHONPATH=$PYTHONPATH:`pwd`:`pwd`/slim /* If Protobuf is throwing errors: sudo apt-get install autoconf automake libtool curl make g++ unzip wget https://github.com/google/protobuf/releases/download/v3.6.0/protobuf-cpp-3.6.0.tar.gz tar -xvf protobuf-cpp-3.2.0.tar.gz cd protobuf-3.2.0 ./autogen.sh ./configure make make check sudo make install sudo ldconfig */...