Get the App
SLTechnology News&Howtos  ›  Development  › 

How to quickly open jupyter notebook in a specified folder

Shulou Source: shulou.com Published: 2022-06-03 11:29:02 11月15日 Update

How to quickly open jupyter notebook in the specified folder, many novices are not very clear about this, in order to help you solve this problem, the following small series will explain in detail for everyone, people who have this need can learn, I hope you can gain something.

A lot of friends use python editor or jupyter notebook, there may be a problem.

That is, the default storage path of jupyter notebook is in C disk, while our python script is in other file locations, so it is very troublesome to run it.

So I want to be able to quickly open jupyter notebook in the specified folder. At present, the common method is to execute the following statement in the CMD command window.

jupyter notebook Specify the folder path

execution graph

Is there an easier and faster way?

some

For example, my D:\python_code directory is currently shown below, and now I want to quickly open jupyter notebook under that path.

Just enter jupyter notebook and press Enter in the file path above.

We will find that jupyter notebook has been automatically opened and the working path is exactly the D:\python_code we need.

Prerequisites This method requires only one prerequisite, that is, add anaconda to path environment is checked during anaconda installation.

Of course, if there is no check box at that time, you can also search for how to add environmental variables.

The above steps have been simplified to just two words.

But we have to enter such a long word, if we are not careful, we might enter it wrong. Therefore, Xiaowu was prepared to be lazy further. He could set the word jupyter notebook as a common phrase.

Take Sogou input method as an example, open Toolbox-Attribute Settings-Advanced-Custom Phrase Settings, set phrases as shown in the figure below. As for abbreviation characters, you can fill them in according to your preferences.

With this setup, I only need to type the three letters jup, and the input method will display the candidate word jupyter notebook.

Select the phrase, then enter, it is easy to open the jupyter notebook, is not easier.

Did reading the above help you? If you still want to have further understanding of related knowledge or read more related articles, please pay attention to the industry information channel, thank you for your support.

Tags: File input word phrase path folder just need method location premise that is condition environment input method enter one help clear advanced careless three Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS MySQL Docker Shulou Tech Info NVidia