In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces the relevant knowledge of "installation and use of JupyterLab". In the operation of actual cases, many people will encounter such a dilemma, 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!
1. Purpose of document writing
Content Overview
1.JupyterLab installation
Use of basic functions of 2.Jupyter Lab
3. Summary
Test environment description
1.RedHat7.2
2.Jupyter Notebook is 1.0.0
3.Jupyter has been integrated with Livy services
4.Python3.6.5
2.JupyterLab installation
1. Install jupyterlabs in the current Python environment
[root@cdh04 ~] # / opt/cloudera/anaconda3/bin/pip install jupyterlab
(can slide left and right)
two。 Start the extension in jupyter after installing jupyterlab
[root@cdh04] # / opt/cloudera/anaconda3/bin/jupyter serverextension enable-- sys-prefix jupyterlab
(can slide left and right)
3. Restart the Jupyter service
[root@cdh04] # / opt/cloudera/anaconda3/bin/jupyter-lab-- allow-root
(can slide left and right)
4. Access http://cdh04.fayson.com:8888 in a browser
It is the same as the previous Jupyter Notebook access interface.
3.Jupyter Lab usage
1. Enter the password to enter the Jupyter Lab main interface
two。 Create a new Notebook for pysaprk
3. Run pyspark code in an open Notebook
TextFile = spark.read.text ("/ tmp/test.txt")
TextFile.count ()
TextFile.first ()
(can slide left and right)
Click the Spark UI shown in the run result to see the job running.
The example Pyspark job that runs through the Livy service is the Sessions of the Livy service as follows
4. Summary
1.JupyterLab is an upgraded version of Jupyter Notebook to provide a better user experience
2.JupyterLab has more powerful support for coding, more languages and programming styles, etc.
This is the end of the content of "installation and use of JupyterLab". 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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.