- Jupyter 教程
- Jupyter - 首頁
- IPython
- IPython - 簡介
- IPython - 安裝
- IPython - 入門
- 執行和編輯 Python 指令碼
- IPython - 歷史命令
- IPython - 系統命令
- IPython - 命令列選項
- 動態物件自省
- IPython - IO 快取
- 將 IPython 設定為預設 Python 環境
- 匯入 Python Shell 程式碼
- IPython - 嵌入 IPython
- IPython - 魔法命令
- Jupyter
- Project Jupyter - 概述
- Jupyter Notebook - 簡介
- 使用 Jupyter 線上
- 安裝和入門
- Jupyter Notebook - 儀表盤
- Jupyter Notebook - 使用者介面
- Jupyter Notebook - 單元格型別
- Jupyter Notebook - 編輯
- Jupyter Notebook - Markdown 單元格
- 單元格魔法函式
- Jupyter Notebook - 繪圖
- 轉換筆記本
- Jupyter Notebook - IPyWidgets
- QtConsole
- QtConsole - 入門
- QtConsole - 多行編輯
- QtConsole - 內聯圖形
- QtConsole - 儲存為 Html
- QtConsole - 多個控制檯
- 連線到 Jupyter Notebook
- 使用 Github 和 nbviewer 分享 Jupyter 筆記本
- JupyterLab
- JupyterLab - 概述
- 安裝和入門
- JupyterLab - 介面
- JupyterLab - 安裝 R 核心
- Jupyter 資源
- Jupyter - 快速指南
- Jupyter - 有用資源
- Jupyter - 討論
使用 Github 和 nbviewer 分享 Jupyter 筆記本
分享 Jupyter 筆記本 – 使用 Github 和 nbviewer
在 GitHub 儲存庫中的具有.ipynb副檔名的 Jupyter Notebook 檔案在開啟時將呈現為靜態 HTML 檔案。筆記本的互動式功能(例如自定義 JavaScript 圖表)在 GitHub 上的儲存庫中將無法使用。
要使用 github 分享筆記本檔案,請登入https://github.com並建立一個公共儲存庫。然後使用“上傳檔案”按鈕上傳您的檔案,如下所示:
這將為您提供一個提交對儲存庫所做更改的選項。然後,儲存庫將顯示上傳的檔案,如下所示:
單擊上傳的檔案以在 github 檢視器中檢視。您可以與他人共享突出顯示的 URL。
另一種線上檢視筆記本檔案的方法是使用 Project Jupyter 的 nbviewer 實用程式。開啟https://nbviewer.jupyter.org/並在文字欄位中輸入儲存庫中檔案的 URL,如下所示。按“Go”按鈕檢視筆記本。
這兩種方法都將筆記本檔案顯示為靜態 html。要能夠在筆記本中執行程式碼,請使用 Jupyter 專案的 Binder 應用程式開啟它。
在 nbviewer 視窗中,您將看到“在 Binder 上執行”按鈕。單擊它,您將看到筆記本檔案以與您從本地計算機上的筆記本伺服器本地儀表板開啟它完全相同的方式開啟。您可以執行所有操作,例如新增/編輯單元格、執行單元格等。
廣告