Skip to content

Instantly share code, notes, and snippets.

@mazzma12
Created March 26, 2020 21:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mazzma12/fd0df6c2eb0854dad895d0c3613ed8eb to your computer and use it in GitHub Desktop.
Save mazzma12/fd0df6c2eb0854dad895d0c3613ed8eb to your computer and use it in GitHub Desktop.
Cat the url of the last most recent jupyter notebook under the user home.
#!/usr/bin/env bash
cat_jupyter_url () {
file=$(ls -rt $HOME/.local/share/jupyter/runtime/*.html | tail -n 1)
cat $file | grep href= | cut -d'"' -f2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment