<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          好用到飛起的12個(gè)jupyter lab插件

          共 3499字,需瀏覽 7分鐘

           ·

          2020-07-24 20:27

          e9a02e22f6dfc50afbb124815455afb7.webp

          點(diǎn)擊上方"藍(lán)字"關(guān)注我們



          0578ed294ac5633f4e3be85ce4aee18f.webp



          Python大數(shù)據(jù)分析

          記錄? ?分享? ?成長(zhǎng)



          1 簡(jiǎn)介

          jupyter lab作為jupyter notebook的升級(jí)改造版,除了更加人性化的交互界面以及更多的用戶(hù)自主定制功能之外,最吸引人的就是其豐富多樣的拓展插件,使得每個(gè)使用jupyter lab的人都可以按照自己所需挑選安裝插件,組合出自己心中的完美工作臺(tái)。

          33cc5223a2fc8dfe449bd40171efad23.webp圖1

          本文就將給大家介紹在我的日常工作中經(jīng)常使用到的12個(gè)jupyter lab實(shí)用插件。

          2?jupyter lab實(shí)用插件推薦

          2.1 debugger

          jupyter notebookjupyter lab中debug有多么蛋疼,嘗試過(guò)的朋友們應(yīng)該都有所體會(huì)。但隨著jupyter lab官方插件debugger的橫空出世,在jupyter lab中進(jìn)行debug變得不再痛苦,充滿(mǎn)了樂(lè)趣:

          7bdc6dbd0f506802d450d10531b4bf93.webp

          圖2

          但要注意當(dāng)前的debugger插件基于xeus內(nèi)核,這是與我們平常使用的ipykernel內(nèi)核不太一樣,所以要想在jupyter lab中使用debugger插件,需要先安裝xeus內(nèi)核再進(jìn)行debugger的安裝,安裝過(guò)程命令如下:

          conda?install?xeus-python=0.8.0?-c?conda-forge
          jupyter?labextension?install?@jupyterlab/debugger

          官方文檔:https://github.com/jupyterlab/debugger

          2.2 geojson-extension

          對(duì)于經(jīng)常處理矢量數(shù)據(jù)的朋友而言,geojson格式的文件想必也是比較熟悉,而jupyter lab中的geojson-extension插件可以幫助我們?cè)?code style="background-color:rgba(27,31,35,.05);font-family:'Operator Mono', Consolas, Monaco, Menlo, monospace;">jupyter lab界面中以地圖可視化的方式打開(kāi)查看geojson文件:

          dc5b405b189506832d8e4ad3bcd01149.webp圖3

          但要注意的是,因?yàn)槭腔?code style="background-color:rgba(27,31,35,.05);font-family:'Operator Mono', Consolas, Monaco, Menlo, monospace;">leaflet的界面,所以不要用這種方式來(lái)查看要素太多的geojson文件(不過(guò)應(yīng)該沒(méi)有人會(huì)用geojson格式存大量矢量信息吧?)

          安裝命令:

          jupyter?labextension?install?@jupyterlab/geojson-extension

          官方文檔:https://github.com/jupyterlab/jupyter-renderers

          2.3 jupyterlab-toc

          jupyterlab-toc幫助我們?cè)?code style="background-color:rgba(27,31,35,.05);font-family:'Operator Mono', Consolas, Monaco, Menlo, monospace;">notebook界面利用markdown來(lái)創(chuàng)建目錄,輔助我們更好地整合梳理數(shù)據(jù)分析工作流:

          dd53898385f988472aa4a6151999fa84.webp圖4

          安裝命令:

          jupyter?labextension?install?@jupyterlab/toc

          官方文檔:https://github.com/jupyterlab/jupyterlab-toc

          2.4 jupyter-matplotlib

          jupyter-matplotlib幫助我們?cè)?code style="background-color:rgba(27,31,35,.05);font-family:'Operator Mono', Consolas, Monaco, Menlo, monospace;">notebook界面配合matplotlib實(shí)現(xiàn)交互式的作圖,只需要在繪圖之前執(zhí)行魔法命令%matplotlib widget,之后繪制的所有matplotlib圖表即可自動(dòng)轉(zhuǎn)換為交互式的:

          6c39766d0ba09f1f4227458298ee6077.webp圖5

          安裝命令:

          pip?install?ipympl
          jupyter?labextension?install?@jupyter-widgets/jupyterlab-manager?jupyter-matplotlib

          官方文檔:https://github.com/matplotlib/ipympl

          2.5 jupyterlab-drawio

          jupyterlab-drawio是一個(gè)讓我們可以在jupyter lab界面內(nèi)基于drawio繪制流程圖、思維導(dǎo)圖等示意圖的插件:

          a89814ea42f7107eb492484ce351c1d6.webp圖6

          安裝命令:

          jupyter?labextension?install?jupyterlab-drawio

          官方文檔:https://github.com/QuantStack/jupyterlab-drawio

          2.6 jupyterlab-execute-time

          jupyterlab-execute-time插件幫助我們?cè)?code style="background-color:rgba(27,31,35,.05);font-family:'Operator Mono', Consolas, Monaco, Menlo, monospace;">jupyter lab中記錄每個(gè)單元cell的執(zhí)行開(kāi)始以及運(yùn)行耗時(shí):

          11871bcc9a39b1350bd4a2818ce6ea8a.webp圖7

          安裝命令:

          jupyter?labextension?install?jupyterlab-execute-time

          官方文檔:https://github.com/deshaw/jupyterlab-execute-time

          2.7 jupyterlab-plotly

          jupyterlab-plotly是一款幫助plotly圖像在jupyter lab中正常渲染的插件:

          b49108a427dea5d126ce1dd5a68bb61b.webp圖8

          安裝命令:

          jupyter?labextension?install?@jupyter-widgets/[email protected]

          官方文檔:https://github.com/plotly/plotly.py

          2.8 jupyterlab-spreadsheet

          jupyterlab-spreadsheet幫助我們?cè)?code style="background-color:rgba(27,31,35,.05);font-family:'Operator Mono', Consolas, Monaco, Menlo, monospace;">jupyter lab中查看表格類(lèi)文件,特別是其支持查看多工作表的excel表格文件:

          431d471d23f0dba7cf518cb4f0446a82.webp圖9

          安裝命令:

          jupyter?labextension?install?jupyterlab-spreadsheet

          官方文檔:https://github.com/quigleyj97/jupyterlab-spreadsheet

          2.9 jupyterlab-system-monitor

          jupyterlab-system-monitor通過(guò)在jupyter lab界面中添加資源監(jiān)視器部件,能幫助我們?cè)诠ぷ鬟^(guò)程中方便的看到CPU、內(nèi)存的實(shí)時(shí)占用情況:

          e262c5f8654686633abcfd8e04c27216.webp

          圖10

          安裝命令:

          pip?install?nbresuse
          jupyter?labextension?install?jupyterlab-topbar-extension?jupyterlab-system-monitor

          官方文檔:https://github.com/jtpio/jupyterlab-system-monitor

          2.10 keplergl-jupyter

          keplergl-jupyter是我使用非常頻繁的jupyter lab插件,因?yàn)闆](méi)有它就無(wú)法在jupyter lab中正常使用keplergl

          02db1fdf554d695f8fe871b85df25838.webp圖11

          安裝命令:

          jupyter?labextension?install?@jupyter-widgets/jupyterlab-manager?keplergl-jupyter

          官方文檔:https://github.com/keplergl/kepler.gl/tree/master/bindings/kepler.gl-jupyter

          2.11 jupyterlab-kite

          這個(gè)插件我們之前的文章仔細(xì)介紹過(guò),幫助我們建立代碼補(bǔ)全神器kitejupyter lab之間的通道,幫助我們?cè)?code style="background-color:rgba(27,31,35,.05);font-family:'Operator Mono', Consolas, Monaco, Menlo, monospace;">jupyter lab使用kite代碼補(bǔ)全服務(wù):

          acc8c0bd9928d7d56b7f75060ffb0b66.webp圖12

          安裝命令(需要jupyter lab版本大于等于2.2.0):

          pip?install?jupyter-kite
          jupyter?labextension?install?@kiteco/jupyterlab-kite

          官方文檔:https://github.com/kiteco/jupyterlab-kite

          2.12 jupyterlab-variableInspector

          jupyterlab-variableInspector幫助我們?cè)?code style="background-color:rgba(27,31,35,.05);font-family:'Operator Mono', Consolas, Monaco, Menlo, monospace;">jupyter lab中查看當(dāng)前環(huán)境中存在的變量相關(guān)信息,以美觀的界面形式對(duì)多種類(lèi)型的對(duì)象予以呈現(xiàn):

          192c6790a113f81cc799e3633a16e7e2.webp圖13

          安裝命令:

          jupyter?labextension?install?@lckr/jupyterlab_variableinspector

          官方文檔:https://github.com/lckr/jupyterlab-variableInspector


          以上就是本文的全部?jī)?nèi)容,如有疑問(wèn)歡迎在評(píng)論區(qū)與我進(jìn)行討論~



          b770527ecc3e92266353c9cab6183504.webp

          加入我們的知識(shí)星球【Python大數(shù)據(jù)分析】

          愛(ài)上數(shù)據(jù)分析!



          c17b3c03ff160e8f546317dc1f894f66.webp





          往期精選

          1

          jupyter lab最強(qiáng)代碼提示插件來(lái)了

          2

          Github 30000 Star的免費(fèi)BI工具:Superset

          3

          Python+Kepler.gl輕松制作時(shí)間輪播地圖




          Python大數(shù)據(jù)分析

          data creates?value

          掃碼關(guān)注我們

          ? ? ? ? ? ? ? ? ? ? ? ? ? ?


          瀏覽 19
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          分享
          舉報(bào)
          評(píng)論
          圖片
          表情
          推薦
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          分享
          舉報(bào)
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  日韩人妻一区二区三区 | 日韩精品视频中文字幕无码 | 国产精品成人免费视频 | 操b在线观看 | 在线免费亚洲 |