日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

jupyter 共享_可共享的Jupyter笔记本!

發布時間:2023/12/15 编程问答 24 豆豆
生活随笔 收集整理的這篇文章主要介紹了 jupyter 共享_可共享的Jupyter笔记本! 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

jupyter 共享

Alright, so it called Colaboratory, and it’s available in Google Drive.

好吧,所以它叫做Colaboratory ,它可以在Google云端硬盤中使用。

太好了嗎? (What’s Awesome?)

  • Sharable Notebooks for teams and collaborators.

    團隊和合作者的共享筆記本。
  • Decent specs

    體面的規格
  • Free GPU access

    免費使用GPU
  • Preinstalled machine learning libraries like NumPy or Tensorflow

    預裝的機器學習庫,例如NumPy或Tensorflow
  • Importing existing Notebooks

    導入現有筆記本

Here’s Google describing it:

這是Google描述的內容:

安裝 (Installation)

On your google drive just right-click anywhere in a folder.

在您的Google驅動器上,只需右鍵單擊文件夾中的任意位置即可。

Go to ‘More’ > ‘Connect more apps

轉到“ 更多 ”>“ 連接更多應用

In the G Suite Marketplace, you can search for ‘Colaboratory’ and just install it.

在G Suite市場中,您可以搜索“ Colaboratory ”并進行安裝。

Done!

完成

使用協作 (Using Colaboratory)

Opening it up you’ll see what looks like a very similar interface to Jupyter notebook.

打開它,您會看到與Jupyter Notebook非常相似的界面。

I won’t get into the coding part since I assume you’re all familiar with Jupyter Notebooks but let’s take a look around at some features.

因為我假設您都熟悉Jupyter Notebook,所以我將不涉及編碼部分,但讓我們來看看其中的一些功能。

進入黑暗模式 (Getting Dark Mode)

Go to Settings (Gear Icon) at the top left of the interface. In the ‘Site’ Tab under ‘Theme’ select dark.

轉到界面左上方的設置(齒輪圖標)。 在“主題”下的“站點”選項卡中,選擇深色。

Phew! Now we can get started.

! 現在我們可以開始了。

目錄 (Table of Contents)

On the right side, we can see 3 tabs.

在右側,我們可以看到3個標簽。

The first one lets us see the Table of Contents. In the notebook that I was playing with, you can see that I created a section called ‘PDF and CDF’ and another called ‘Convolution’.

第一個讓我們看到目錄 。 在我正在玩的筆記本中,您可以看到我創建了一個名為“ PDF和CDF ”的部分以及另一個名為“ 卷積 ”的部分。

Sections are a great way to organize your notebooks.

分區是組織筆記本的好方法。

In Colaboratory, they can be created by : — clicking the ‘+section’ button in the Table of Contents tab — or just by adding text and formatting it as a title (ex: ‘# Title1’).

在協作實驗室中,可以通過以下方式創建它們:—單擊“ 目錄”選項卡中的“ +分區 ”按鈕—或僅通過添加文本并將其格式化為標題 (例如:“#Title1”)來創建它們。

代碼段 (Code Snippets)

The next tab is code snippets. Colaboratory provides you with a few default code snippets that can be pretty useful. Some are kinda cool, like the ‘Camera Capture’ one.

下一個標簽是代碼段。 Colaboratory為您提供了一些非常有用的默認代碼片段。 有些挺酷的,例如“ Camera Capture ”。

You can add your own code snippets. But as far as I can tell, it’s a little convoluted. Here’s how I go about doing it.

您可以添加自己的代碼段。 但據我所知,這有點令人費解。 這就是我要做的事情。

  • Create a new NoteBook and call it whatever you want. I called my notebook Snippets.

    創建一個新的筆記本,然后隨便調用它。 我給筆記本打了個摘錄

  • For each snippet create a title and add your snippet. For example, here I have 2 snippets with some random code.

    為每個代碼段創建一個標題并添加您的代碼段。 例如,這里有2個代碼段,其中包含一些隨機代碼。
  • 3. Then just copy the URL of your snippet notebook and open Settings (Gear Icon in the top left-hand corner). On the ‘Site’ tab > under ‘Custom snippet notebook URL’ > paste your snippet URL and hit ‘Save’.

    3.然后,只需復制代碼段筆記本的URL并打開“設置” (位于左上角的齒輪圖標)。 在“ 網站 ”標簽>“ 自定義摘要筆記本URL ”下, 粘貼您的摘要URL,然后點擊“ 保存”

    4. Done! Your snippets are now searchable in the snippet section based on their title name. So for example, if I search for Imports in any of my new notebooks,

    4.完成! 現在,您可以根據片段名稱在其片段中進行搜索了。 例如,如果我在任何新筆記本中搜索“ 導入”

    I can know access the snippet that I had created! This is a super useful feature for when code gets reused constantly.

    我可以知道訪問我創建的代碼段! 當代碼被不斷重用時,這是一個超級有用的功能。

    文件管理器 (The File Manager)

    This is great because it gives you an easy way to view all your files. My original Notebook seems to come with some sample data which I found weird but thanks Google.

    這很棒,因為它為您提供了一種查看所有文件的簡便方法。 我的原始筆記本似乎帶有一些示例數據,但我覺得很奇怪,但感謝Google。

    If you notice the Pikachu image, I was able to grab a picture online and easily save it to my File Manager (via !wget). The cool thing is that we can click on these files and view them right from Colaboratory.

    如果您注意到了皮卡丘(Pikachu)圖像,我就可以在線捕獲圖片并將其輕松保存到我的文件管理器中(通過!wget )。 很酷的事情是,我們可以單擊這些文件并直接從Colaboratory查看它們。

    You can see that both CSV files and images are supported and viewable. This is great for being able to look through files quickly without having to go to my local file directory or GDrive.

    您可以看到CSV文件和圖像均受支持并且可見。 這非常適合能夠快速瀏覽文件而無需轉到我的本地文件目錄或GDrive。

    分享中 (Sharing)

    If you’ve ever used google docs you probably already know how to share docs. Simply, click on the share icon and add people to your notebook or send them a link.

    如果您曾經使用過Google文檔,則可能已經知道如何共享文檔。 只需單擊共享圖標,然后將其他人添加到您的筆記本中或向他們發送鏈接。

    You can also link to a specific cell (for when your notebooks get crazy) by hovering over a cell and selecting the share icon.

    您還可以通過將鼠標懸停在某個單元格上并選擇共享圖標來鏈接到特定的單元格(當筆記本電腦發瘋時)。

    GPU訪問 (GPU Access)

    One of the best features is the GPU access provided. On the toolbar select ‘Runtime’ > ‘Change Runtime Type’ and you can choose between a GPU or TPU.

    最好的功能之一是提供的GPU訪問。 在工具欄上,選擇“ 運行時” >“ 更改運行時類型”,然后可以在GPUTPU之間進行選擇。

    This makes some complex processes significantly faster. Head here to see more information about the specs Google provides because it may change over time. Currently, you can run a notebook with GPU enabled for 12 hours, which is pretty decent considering its free. If you want to go beyond that they do provide a paid-tier option.

    這使得一些復雜的過程明顯更快。 請前往此處查看有關Google提供的規格的更多信息,因為它可能會隨著時間而變化。 目前,您可以在啟用了GPU的筆記本電腦運行12個小時,考慮到它的免費版本 這相當不錯。 如果您想超出此范圍,他們會提供付費層選項。

    Colaboratory is actually a pretty old thing that I just didn’t know about. I think it was released back in 2017 but I never heard about it until recently. But I have to say the features are super cool and useful. There’s a ton of awesome features that I didn’t cover so if there’s anything awesome that I missed, feel free to comment on it in the comment section, I’m sure it’ll help everyone out and thanks for reading!

    合作實際上是我不知道的很舊的東西。 我認為它于2017年發布,但直到最近我才聽說。 但是我不得不說這些功能非常酷并且有用。 我沒有涉及很多很棒的功能,因此,如果我錯過了任何很棒的功能,請在評論部分中隨意評論,我相信它會幫助所有人,并感謝您的閱讀!

    If you liked this story check out some of my others,

    如果您喜歡這個故事,請查看我的其他一些故事,

    翻譯自: https://towardsdatascience.com/sharable-jupyter-notebooks-bf3ec9c2e0be

    jupyter 共享

    總結

    以上是生活随笔為你收集整理的jupyter 共享_可共享的Jupyter笔记本!的全部內容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。