Skip to content

Instantly share code, notes, and snippets.

@Arbz583
Arbz583 / local.sh
Created April 23, 2024 18:23 — forked from Ekrekr/local.sh
Run jupyter notebooks remotely using a custom python environment.
#!/bin/bash
# local.sh - access a remote running jupyter notebooks, for example on a
# cluster, locally. These steps can be run from any directory on your local
# machine.
# Create a tunnel for notebook communication. The user and server credentials
# should be the same as you used to log in to the server for the `remote.sh`
# script.
ssh -N -f -L localhost:8888:localhost:8890 <user>@<server>