In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces you how to use Jupyter Notebook to customize personalized python, the content is very detailed, interested friends can refer to, hope to be helpful to you.
At present, python has got a lot of practical achievements in artificial intelligence and data analysis. There are also many kinds of editors for python, such as pychram, Numeric +, jupyter. Jupyter is a tool for editing in the form of web. Next, let's talk about how to use Ruijiang Cloud service to deploy jupyter, a powerful tool.
I. Environmental configuration
1.centeos7
2.python3
Install jupyter notebook install jupyter install Jupyter Notebook install Jupyter Notebook# install jupyter notebook python3-m pip install jupyter# install the package manager in python3 after installation, create a soft connection so that you can directly execute ln-s / usr/local/python3/bin/jupyter / usr/bin/jupyter anywhere and start the Jupyter server through the jupyter notebook command Verify that [root@instance-hrnebyqu bin] # jupyter notebook-- allow-root [I 11 allow-root 26 NotebookApp 22.273 NotebookApp] JupyterLab beta preview extension loaded from / root/anaconda3/lib/python3.6/site-packages/jupyterlab [I 11 14 26 NotebookApp 22.273 NotebookApp] JupyterLab application directory is / root/anaconda3/share/jupyter/lab [I 11 allow-root 2622 NotebookApp 22.277 NotebookApp] Serving notebooks from local directory: / root/ipython
So far, Jupyter Notebook has been installed successfully.
Configure external access to turn off firewall (CentOS7) systemctl stop firewalld.service systemctl disable firewalld.service to generate Jupyter Notebook configuration file jupyter notebook-- generate-config creates login password through ipython: (this is to be executed in python3's bin directory) In [2]: passwd () Enter password: Verify password: Passwords do not match. Enter password: Verify password: Out [2]: 'sha1:b79414f2844a:27a3bd36f0d79a1e51664e21e75559b3c5554db4' edits the generated configuration file / root/.jupyter/jupyter_notebook_config.py And add the following configuration information to the header of the file: [root@instance-hrnebyqu bin] # vim / root/.jupyter/jupyter_notebook_config.py c.NotebookApp.ipkeeper address 0.0.0.0' # listens to all addresses c.NotebookApp.password = upright sha1pur153a389b3933pur9e8c3bcaf7690cf46931f81c21e39753d3a1696d' # is the password c.NotebookApp.open_browser = False c.NotebookApp.port generated earlier. = 8888 # designated port c.NotebookApp.notebook_dir = "/ root/ipython" # working directory of jupyter
Access the address through the browser:
Http://ipaddress:8888/
Install, view and uninstall third-party packages in jupyter:
Import pipdef pip_install (package): pip.main (['install', package]) def pip_list (): print (pip.main ([' list'])) def pip_uninstall (package): pip.main (['uninstall', package])
The above is a simple explanation of the installation and configuration of jupyter, and then you can install your own cloud python editor.
On how to use Jupyter Notebook customized personalized python to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
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.