使用 mobaxterm 在遠端電腦上開啟 jupyter 筆記本

使用 mobaxterm 在遠端電腦上開啟 jupyter 筆記本

我正在嘗試透過 mobaxterm 存取我的伺服器來在筆記型電腦上開啟 jupyter 筆記型電腦。

當我輸入jupyter notebookmobaxterm 終端機時,jupyter 筆記本會在我的伺服器電腦上開啟。我嘗試過jupyter notebook --no-browser將 http 貼到 chrome 的地址欄中,但它說localhost didnt send any data。如果我在輸入時也設置端口,這不會改變jupyter notebook --no-browser --port 8888

有什麼建議麼?

答案1

您需要為遠端伺服器設定 SSH 隧道才能存取本機上的 Jupyter 筆記本。

在客戶端電腦上執行以下命令: plink -ssh -L 8080:localhost:8888 username@server_address

登入伺服器並啟動 jupyter 筆記本實例。現在您可以透過以下連結存取筆記本:http://本地主機:8080

相關內容