-
Notifications
You must be signed in to change notification settings - Fork 316
how to run notebook from any folder on computer #848
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
did you try drag & drop the notebook on jupyterlab icon ? |
with Winpython64-3.8.2.1codb2.exe, you can also try drag & drop the notebook on VSCode icon. |
so no way to run from command line
|
the icon is doing what is in scripts\winjupyter_lab.bat:
so to call E:\my_code\my_notebook.ipynb, you can do:
|
unbelievable , so complicated... |
maybe they have better ideas on stackoverflow, you may ask there |
Ok, so here's a simple and uncomplicated way of doing this: And you should register *.ipynb files to the jupyter notebook/lab app in the winpython directory. Then you can launch the notebook you created earlier by simply klicking on the file. As you see, it only takes 2 lines in the WP command prompt: |
I know that is already old, but I had the same problem. The suggestion by @BerlXIII works, but stil requires you to start something somehwere else. I threw together some pieces of the available scripts and wrote the following Batch-file called "Start-Jupyter-Here.bat": @echo off
echo This scipts starts Jupyter from any folder
echo The path to the root of WinPython has to be defined in this script
echo.
rem Path without \ at the end!
set wipypfad=c:\WinPython-64bit-3.6.1.0Qt5
echo We use %wipypfad%
if not exist %wipypfad%\scripts\env_for_icons.bat echo Path not correct! %wipypfad%\scripts\env_for_icons.bat not found! EXIT
if not exist %wipypfad%\scripts\env_for_icons.bat goto :EndHere
echo.
echo Path is correct!
call "%wipypfad%\scripts\env_for_icons.bat"
echo Calling Jupyter ....
jupyter notebook
:EndHere It is pretty much what was suggested above, but you can copy this batch file into any folder and directly launch Jupyter by double-clicking the batch file in that folder Works on network shares as well. |
A slightly different approach may be to use a shortcut in the context menu: https://pypi.org/project/start-jupyter-cm. |
Very cool, @joeheaven's solution works! But I guess @ericpre's solution is even more uncomplicated... |
I suggest another "Start_Jupyter [WPy-x64-3760ps2].cmd" to run a Jupyter Notebook-server in the directory of the script:
You should put the script in the root-folder of your notebooks' location and run the script via a shortcut from anywhere. |
trying something in next build, with this that may work "winipython_notebook.bat E:\my_code\my_notebook.ipynb" |
That's it! You should now be able to launch Jupyter Notebook in the C: drive by running the batch file you created. ~roco |
This an older query now but I have come across an easier solution while looking through these answers Open winpython command prompt cd to folder you want enter the following in command prompt This will open jupyter in directory specified |
Please help how to run notebook from any folder on computer
the problem is Jupyter Notebook.exe from
e:\WINPYTHON_FULL_apr22\WPy64-3770\Jupyter Notebook.exe
can read only notebooks from
E:\WINPYTHON_FULL_apr22\WPy64-3770\notebooks
so lets say file my_notebook.ipynb located in
E:\my_code
The text was updated successfully, but these errors were encountered: