In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "how to configure the JupyterLab environment". Many people will encounter such a dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
JupyterLab
How to choose the Python code editor? PyCharm, VS Code and Jupyter Notebook all have their own characteristics. For a large code base, it is better to use traditional IDE, but Jupyter Notebook is more suitable for scenarios that require visual operations such as data analysis.
Lao Hu likes JupyterLab, which is the latest data science production tool of Jupyter. You can use it to write notebook, operate terminals, edit markdown text, open interactive mode, view csv files and pictures, and so on.
Install jupyterlab
It is recommended that you install conda and run Anaconda Prompt as an administrator
Conda install-c conda-forge jupyterlab
Wait a moment, the installation is complete!
Set work path / cancel password
In general, the default working directory for JupyterLab is the installation path, but this may not be what most people want, and the way to change it is to execute the following command in cmd:
Jupyter notebook-generate-config
A configuration file is generated, and the file path is displayed after success
Open the .py file displayed in the path, navigate to the location of the following figure, delete the previous #, and modify it to:
C.NotebookApp.notebook_dir ='D:\ PyProject'
In some cases, it is also necessary to enter a password.
This is too troublesome. Find the line # c.NotebookApp.token in the configuration file and change it.
C.NotebookApp.password =''
Save after modification
Add JupyterLab Shortcut
When you start JupyterLab, you can type jupyter lab under the cmd command, which automatically pops up the browser and enters the jupyter lab interface.
But this is a little troublesome. Can you create a new shortcut directly on the desktop or on the start menu?
Yes, just three steps:
1. First open the file location of the jupyter notebook shortcut
2. Then make a copy of the jupyter notebook shortcut and rename it to Jupyter Lab
3. Right-click to view the properties of the copy and replace..\ jupyter-notebook-script.py in the target box with..\ jupyter-lab-script.py
The shortcut is built, will automatically appear in the start menu, can also be sent to the desktop shortcut, and it will be much more convenient to start jupyter lab later.
This is the end of "how to configure the JupyterLab environment". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.