JupyterLab is an open-source web-based interactive development environment for working with Jupyter notebooks, code, and data. It is built on top of Jupyter Notebook and offers features such as a text editor, a file browser, a terminal emulator, and data visualization tools. In this tutorial, we will walk you through the steps to install JupyterLab on NixOS Latest.
Open the terminal on your NixOS Latest machine. You can do this by pressing ctrl + alt + t
on your keyboard.
JupyterLab is available in the Nixpkgs repository. If you haven't already installed Nixpkgs, type the following command in the terminal to install it:
$ sudo nix-channel --add https://nixos.org/channels/nixpkgs-unstable
$ sudo nix-channel --update
Once you have installed Nixpkgs, type the following command in the terminal to install JupyterLab:
$ nix-env -iA nixpkgs.jupyterlab
This will install JupyterLab and its dependencies.
To launch JupyterLab, type the following command in the terminal:
$ jupyter lab
This will open JupyterLab in your default web browser.
To create a new notebook in JupyterLab, select "File" from the main menu and then "New Notebook". You can choose the type of notebook you want to create from the options available.
Once you have created your notebook, you can save it by selecting "File" and then "Save Notebook". You can then run the code in the notebook by selecting "Cell" from the main menu and then selecting "Run All".
Congratulations! You have successfully installed JupyterLab on NixOS Latest and created a new notebook. You can now start exploring the many features that JupyterLab has to offer.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!