Created
March 26, 2020 21:50
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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