After installing Anaconda, the Jupyter notebook shortcut works fine. Other stackoverflow answers have indicated that you can change the default working directory by changing the "Start In:" field in the shortcut properties. However, if Anaconda is installed in the suggested folder for single users C:\Users\whshg0\AppData\Local\Continuum\Anaconda3\
, then the Target
field of the shortcut gets truncated when you edit the Start in
field. Example:
C:\Users\user01\AppData\Local\Continuum\Anaconda3\python.exe C:\Users\user01\AppData\Local\Continuum\Anaconda3\cwp.py C:\Users\user01\AppData\Local\Continuum\Anaconda3 "C:/Users/user01/AppData/Local/Continuum/Anaconda3/python.exe" "C:/Users/user01/AppData/Loc
al/Continuum/Anaconda3/Scripts/jupyter-notebook-script.py"
gets truncated. After you click ok, Jupyter Notebook will no longer open.
What is a fast way to rebuild the Jupyter Notebook shortcut so the Target
is not limited to the 255 character limit?
1. Change Jupyter Notebook startup folder (Windows) Copy the Jupyter Notebook launcher from the menu to the desktop. Right click on the new launcher and change the Target field, change %USERPROFILE% to the full path of the folder which will contain all the notebooks.
Jupyter fails to start If you're using a menu shortcut or Anaconda launcher to start it, try opening a terminal or command prompt and running the command jupyter notebook . If it can't find jupyter , you may need to configure your PATH environment variable.
Starting with Jupyter Notebook 5.0, you can customize the command mode shortcuts from within the Notebook Application itself. Head to the ``Help`` menu and select the ``Edit keyboard Shortcuts`` item. A dialog will guide you through the process of adding custom keyboard shortcuts.
So let's get going and get this done. Go to the folder location C:\Users\YOUR_USERNAME\. jupyter and open the file named, jupyter_notebook_config.py in any text editor. Uncomment the key string by deleting the # sign and in single quotes type the location of your custom startup folder and save the changes.
For example, a person added a shortcut Ctrl-R for the restart kernel and ran all cells command. These shortcuts of the Jupyter Notebook are created on my Github repo that one can download and apply to practice these keyboard shortcuts. Note: that the shortcuts mentioned below are for Linux and Windows users.
18 8 After installing Anaconda, the Jupyter notebook shortcut works fine. Other stackoverflow answers have indicated that you can change the default working directory by changing the "Start In:" field in the shortcut properties.
Also, we can make a shortcut on our desktop to launch jupyter. Follow this path Right click on the desktop > New > Shortcut to create a shortcut link. It will open a window and will ask you to input location path.
When you select one of the new keys you should see something like this on the right panel: Double click on the default attribute and fill the value data field with the text that you want to appear on the context menu for that key: “Open folder in AnacondaPrompt”, “Open with JupyterLab”, and “Open with Jupyter Notebook” for example.
I was able to remake the shortcut by pointing the shortcut to:
C:\Users\user01\AppData\Local\Continuum\Anaconda3\Scripts\jupyter-notebook.exe
I lost the icon but I'm sure with some searching I can find it again.
In Environment variables create System variable Anaconda3 (or other name) with the value:
C:/Users/user01/AppData/Local/Continuum/Anaconda3
Then substitute first 3 entries of:
C:/Users/user01/AppData/Local/Continuum/Anaconda3
in Shortcut -> Target with %Anaconda3%
. This will make the target line length < 255
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With