In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
It is believed that many inexperienced people don't know what to do about how to configure remote access with loyallab/notebook in jupyter. Therefore, this paper summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.
Install jupyter
Pip install jupyterlab
Or
Pip install jupyternotebook
This is biased towards jupyter lab, which is easier to use. Of course, you can also install miniconda first and then install it in the environment.
Generate the default configuration file and generate the secret key using the command:
Jupyter notebook-generate-config
The configuration file, jupyter_notebook_config.py, is generated in the user's home directory. Enter python3 to enter the python interactive environment:
> from notebook.auth import passwd > passwd () Enter passwd: # enter your password here Verify passwd: # re-enter the password > argon2:$argon2id$v=19$ masking 10240pc8 $YiTF3tI7ZWECTbNaa5VZtA$kaU+xbQSsMaZsH98sqoaGg # copy this key
Move on to the next step.
Modify configuration file using command
Vim ~ / .jupyter/jupyter_notebook_config.py/App.ip # enter / App.open_brower # enter / App.port # enter / allow_remote_access # enter
Modify the configuration file under directory ~ / .jupyter/jupyter_notebook_config.py, find the following items, uncomment and modify:
C.NotebookApp.password = 'argon2:$argon2id$v=19$ mpurs 10240 Magnum 10 heroine 8 $YiTF3tI7ZWECTbNaa5VZtA$kaU+xbQSsMaZsH98sqoaGg' # secret key c.NotebookApp.ipdevelopers allowed' # * allow any ip access c.NotebookApp.open_browser = False # default does not open browser c.NotebookApp.port = 8888 # you can specify a port to use when accessing allow_remote_access = True
Test the server side:
Jupyter lab
Turn on the service. Client: enter the server ip:8888 (self-set port) to access, and then enter the password.
Background operation
Enter the command:
Nohup jupyter lab &
Run in the background. (nohup closes the terminal, & runs in the background)
Root user command
Nohup jupyter lab-allow-root& after reading the above, have you mastered how to configure remote access by loyallab/notebook in jupyter? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
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.