Skip to content

Instantly share code, notes, and snippets.

@whatalnk
Created February 16, 2016 11:25
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 whatalnk/68d6c8661c51a69b0af4 to your computer and use it in GitHub Desktop.
Save whatalnk/68d6c8661c51a69b0af4 to your computer and use it in GitHub Desktop.
Open jupyter notebook
$filename = (Resolve-Path $args[0])
cd $env:HOME
$fileurl = (Resolve-Path -Relative $filename).Replace("\", "/").TrimStart(".")
Start-Process -FilePath jupyter -ArgumentList "notebook --no-browser" -WindowStyle Minimized
Start-Sleep -seconds 1
Start-Process -FilePath "http://localhost:8888/notebooks$fileurl"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment