簡體   English   中英

Jupyter notebook 在 vs code mac 上不顯示 output

[英]Jupyter notebook not showing output on vs code mac

我將 Jupyter Notebook 安裝到 VS Code,但是當我嘗試運行任何東西時,它沒有顯示 output。有人知道為什么嗎? 我該如何解決這個問題?

看起來您沒有連接到任何 Jupyter 服務器,因此單元實際上正在等待運行。 請參閱Visual Studio 文檔了解如何設置:

設置環境

To work with Python in Jupyter Notebooks, you must activate an Anaconda environment in VS Code, or another Python environment in which you've installed the Jupyter package. To select an environment, use the Python: Select Interpreter command from the Command Palette (Ctrl +Shift+P)。

激活適當的環境后,您可以創建並打開 Jupyter Notebook,連接到遠程 Jupyter 服務器以運行代碼單元,並將 Jupyter Notebook 導出為 Python 文件。

一旦單元格運行正常,單元格下方應該有一個綠色勾號,如下所示: Jupyter 單元在 VSCode 中運行

如果你配置了一個虛擬環境,你必須在重啟你的機器后再次使用 (Ctrl+Shift+P) select 它。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM