# How do I use JupyterLab?

https://www.seturack.com/en/knowledgebase/article/how-do-i-use-jupyterlab

1. In the panel, open **My servers** and click your server.
2. On the **Overview** tab, wait for the **App** row to say "Jupyter is ready". The page refreshes itself.
3. Open the link in the **Panel address** row.
4. Enter the password from the **Password** row. JupyterLab opens.

## Installing packages

Type this into a notebook cell and run it:

`%pip install pandas`

Packages go into the virtual environment and stay after a restart.

## Files

Your notebooks are in the `/home/jupyter/not-defterleri` folder on the server. You can upload and download files from inside JupyterLab.

## Good to know

- Code you run in a notebook runs as the `jupyter` user. Do not share the password: the terminal opens as this user too.
- If heavy data work runs out of RAM, you can resize your server from the panel.

## Your own domain

1. Point your domain's A record to your server's IP address.
2. As root, replace the old name in two files: `sed -i 's/OLD_NAME/yourdomain.com/g' /etc/caddy/Caddyfile /home/jupyter/.jupyter/jupyter_server_config.py`. `OLD_NAME` is the part after `https://` in the address shown in the panel. This also points the `allow_origin` setting in the second file to the new name.
3. `systemctl reload caddy`
4. `systemctl restart jupyter`

Caddy gets and renews the certificate by itself.

Only **80**, **443** and **22** for SSH are open to the outside.

**No server yet?** [Order a server with Jupyter installed](https://www.seturack.com/en/jupyter-vps): you choose the size and pay for what you choose.
