Created
February 16, 2016 11:25
-
-
Save whatalnk/68d6c8661c51a69b0af4 to your computer and use it in GitHub Desktop.
Open jupyter notebook
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
$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