{"id":45994,"date":"2023-11-05T20:41:47","date_gmt":"2023-04-21T14:14:17","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/45994-2\/"},"modified":"2024-05-04T07:43:11","modified_gmt":"2024-05-03T23:43:11","slug":"45994-2","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/45994-2\/","title":{"rendered":""},"content":{"rendered":"<h1>A JupyterLab setting procedure<\/h1>\n<p>A base setting with minimum packages via pip<\/p>\n<p>jupyterlab-lsp\u304b\u3089jupyterlab-kite\u306b\u4e57\u308a\u63db\u3048\u305f\u305f\u3081\u3001pip\u306b\u3088\u308bJupyterLab\u57fa\u790e\u8a2d\u5b9a\u306e\u5fd8\u5099\u9332\u3092\u65b0\u8abf\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>jupyterlab-lsp\u3092\u7528\u3044\u305f\u65e7\u30d0\u30fc\u30b7\u30e7\u30f3\u306f\u3053\u3061\u3089\u3002<\/p>\n<h2>Prerequisite<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Windows 10<\/ul>\n<\/li>\n<\/ul>\n<p>python 3.8+<\/p>\n<p>nodejs 10+<br \/>\nMicrosoft Visual C++ 14.0 or greater (Build Tools for Visual Studio 2019)<br \/>\ngit 2+<br \/>\nKite Engine<\/p>\n<h2>Getting Started<\/h2>\n<h3>JupyterLab installation<\/h3>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">install python with pip<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">install node.js<\/ul>\n<\/li>\n<\/ul>\n<p>install Microsoft Visual C++ 14.0 or greater<\/p>\n<p>install git<\/p>\n<p>install Kite Engine<\/p>\n<h4>Making a virtual environment<\/h4>\n<pre class=\"post-pre\"><code>&gt; python -m venv ENV\r\n&gt; cd ENV\r\n&gt; Scripts\/activate\r\n(ENV) &gt; pip install jupyterlab\r\n<\/code><\/pre>\n<h3>Extensions<\/h3>\n<h4>Extension manager<\/h4>\n<p>Jupyter Widgets JupyterLab Extension: for Jupyter\/IPython widgets<\/p>\n<pre class=\"post-pre\"><code>(ENV) &gt; pip install ipywidgets\r\n(ENV) &gt; jupyter nbextension enable --py widgetsnbextension\r\n(ENV) &gt; jupyter labextension install @jupyter-widgets\/jupyterlab-manager\r\n<\/code><\/pre>\n<h4>Variable inspector<\/h4>\n<p>jupyterlab_variableinspector: variable inspector<\/p>\n<pre class=\"post-pre\"><code>(ENV) &gt; jupyter labextension install @lckr\/jupyterlab_variableinspector\r\n<\/code><\/pre>\n<h4>Table of contents<\/h4>\n<p>jupyterlab-toc: table of contents for markdown<\/p>\n<pre class=\"post-pre\"><code>(ENV) &gt; jupyter labextension install @jupyterlab\/toc\r\n<\/code><\/pre>\n<h4>File tree<\/h4>\n<p>jupyterlab_filetree: filetree view<\/p>\n<pre class=\"post-pre\"><code>(ENV) &gt; jupyter labextension install jupyterlab_filetree\r\n<\/code><\/pre>\n<h4>Shortcut key setting user interface<\/h4>\n<p>jupyterlab-shortcutui: ui for shortcut keys<\/p>\n<pre class=\"post-pre\"><code>(ENV) &gt; jupyter labextension install @jupyterlab\/shortcutui\r\n<\/code><\/pre>\n<h4>Notebook-Python-Markdown file synchronization<\/h4>\n<p>jupytext: .py file sync with .ipynb<\/p>\n<pre class=\"post-pre\"><code>(ENV) &gt; pip install jupytext --upgrade\r\n(ENV) &gt; jupyter labextension install jupyterlab-jupytext\r\n<\/code><\/pre>\n<h4>Version control<\/h4>\n<p>jupyterlab-git: git control via jupyterlab<\/p>\n<pre class=\"post-pre\"><code>(ENV) &gt; pip install --upgrade jupyterlab-git\r\n(ENV) &gt; jupyter lab build\r\n<\/code><\/pre>\n<p>github: github browsing via jupyterLab<\/p>\n<pre class=\"post-pre\"><code>(ENV) &gt; jupyter labextension install @jupyterlab\/github\r\n<\/code><\/pre>\n<h4>Linter, Autocompletion, Code formatter<\/h4>\n<p>jupyterlab_code_formatter: code formatter (black, isort, autopep8, yapf)<\/p>\n<pre class=\"post-pre\"><code>(ENV) &gt; jupyter labextension install @ryantam626\/jupyterlab_code_formatter\r\n(ENV) &gt; pip install jupyterlab_code_formatter\r\n(ENV) &gt; jupyter serverextension enable --py jupyterlab_code_formatter\r\n<\/code><\/pre>\n<p>Go to definition extension for JupyterLab: jump to definition<\/p>\n<pre class=\"post-pre\"><code>(ENV) &gt; jupyter labextension install @krassowski\/jupyterlab_go_to_definition\r\n<\/code><\/pre>\n<p>jupyterlab-kite: AI powered code completion<\/p>\n<pre class=\"post-pre\"><code>(ENV) &gt; pip install jupyter-kite\r\n(ENV) &gt; jupyter labextension install @kiteco\/jupyterlab-kite\r\n<\/code><\/pre>\n<h4>Spell checker<\/h4>\n<p>jupyterlab_spellchecker: spell checker for Markdown<\/p>\n<pre class=\"post-pre\"><code>(ENV) &gt; jupyter labextension install @ijmbarr\/jupyterlab_spellchecker\r\n<\/code><\/pre>\n<h3>Other standard packages<\/h3>\n<pre class=\"post-pre\"><code>(ENV) &gt; pip install numpy pandas matplotlib\r\n<\/code><\/pre>\n<h2>Add a new kernel<\/h2>\n<pre class=\"post-pre\"><code>(ENV) &gt; ipython kernel install --user --name=ENV\r\n<\/code><\/pre>\n<h2>Launch<\/h2>\n<ul class=\"post-ul\">Launch jupyterlab<\/ul>\n<pre class=\"post-pre\"><code>(ENV) &gt; jupyter lab\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>A JupyterLab setting procedure A base setting with mini [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-45994","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>- Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/45994-2\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:description\" content=\"A JupyterLab setting procedure A base setting with mini [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/45994-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-04-21T14:14:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-03T23:43:11+00:00\" \/>\n<meta name=\"author\" content=\"\u97f5, \u79d1\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u97f5, \u79d1\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/45994-2\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/45994-2\/\",\"name\":\"- Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-04-21T14:14:17+00:00\",\"dateModified\":\"2024-05-03T23:43:11+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/45994-2\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e\",\"name\":\"\u97f5, \u79d1\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g\",\"caption\":\"\u97f5, \u79d1\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunke\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/45994-2\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"- Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/45994-2\/","og_locale":"zh_CN","og_type":"article","og_description":"A JupyterLab setting procedure A base setting with mini [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/45994-2\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-04-21T14:14:17+00:00","article_modified_time":"2024-05-03T23:43:11+00:00","author":"\u97f5, \u79d1","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u97f5, \u79d1","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/45994-2\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/45994-2\/","name":"- Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-04-21T14:14:17+00:00","dateModified":"2024-05-03T23:43:11+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/45994-2\/"]}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e","name":"\u97f5, \u79d1","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g","caption":"\u97f5, \u79d1"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunke\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/45994-2\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/45994","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=45994"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/45994\/revisions"}],"predecessor-version":[{"id":97026,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/45994\/revisions\/97026"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=45994"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=45994"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=45994"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}