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

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 运维知识 > windows >内容正文

windows

如何设置Jupiter Notebook服务器并从任何地方访问它(Windows 10)

發(fā)布時間:2023/12/15 windows 26 豆豆
生活随笔 收集整理的這篇文章主要介紹了 如何设置Jupiter Notebook服务器并从任何地方访问它(Windows 10) 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

新程序員指南: (New Programmer’s Guide:)

介紹: (Introduction:)

I want to work from my laptop and have my desktop do all of the heavy lifting.

我想用筆記本電腦工作,讓臺式機完成所有繁重的工作。

It might not seem like it, but that simple request can actually be pretty hard to implement as a new programmer.

看起來似乎不是這樣,但是作為一個新程序員,實際上很難實現(xiàn)簡單的請求。

This article is an attempt to change that and make it easy for everyone.

本文試圖改變這一點并使所有人都容易使用。

It offers a long-term solution to using desktop resources from your laptop:

它提供了從筆記本電腦使用桌面資源的長期解決方案:

  • CPU Clock Speed

    CPU時鐘速度
  • CPU Cores

    CPU核心
  • RAM

    內(nèi)存
  • GPU

    顯卡
  • HDD/SSD/NVMe

    硬盤/ SSD / NVMe

目錄: (Table of Contents:)

  • Set Up the Remote Desktop on the PC

    在PC上設(shè)置遠(yuǎn)程桌面

  • Set Up the Remote Desktop on the Laptop

    在筆記本電腦上設(shè)置遠(yuǎn)程桌面

  • Set Up Python on the PC

    在PC上設(shè)置Python

  • Set up OpenSSL on the PC

    在PC上設(shè)置OpenSSL

  • Set Up Jupyter on the PC

    在PC上設(shè)置Jupyter

  • Set Up the Text Editor on the PC

    在PC上設(shè)置文本編輯器

  • Edit the PATH Environment Variable on the PC

    在PC上編輯PATH環(huán)境變量

  • Create an SSL Certificate on the PC

    在PC上創(chuàng)建SSL證書

  • Set Up a Configuration File on the PC

    在PC上設(shè)置配置文件

  • Set Up the Server Password on the PC

    在PC上設(shè)置服務(wù)器密碼

  • Set Up the Server on the PC

    在PC上設(shè)置服務(wù)器

  • Access the Server at Home on the Laptop

    在筆記本電腦上在家訪問服務(wù)器

  • Open the Port on the PC

    在PC上打開端口

  • Verify the Port is Working on the PC

    驗證端口在PC上是否正常工作

  • Set Up Port Forwarding on the PC

    在PC上設(shè)置端口轉(zhuǎn)發(fā)

  • Access the Server From Anywhere on the Laptop

    從筆記本電腦上的任何地方訪問服務(wù)器

  • Set Up a Static IP Address on the PC

    在PC上設(shè)置靜態(tài)IP地址

在PC上設(shè)置遠(yuǎn)程桌面: (Set Up the Remote Desktop on the PC:)

The remote desktop is only used to set up and troubleshoot the PC.

遠(yuǎn)程桌面僅用于設(shè)置PC并對其進(jìn)行故障排除。

First, we’ll create a TeamViewer account:

首先,我們將創(chuàng)建一個TeamViewer帳戶:

  • Visit the official website

    訪問官方網(wǎng)站

  • Fill out the account information

    填寫賬戶信息
  • Click “Sign Up”

    點擊“注冊”
  • Verify the email address

    驗證電子郵件地址
  • Next, we’ll install the application:

    接下來,我們將安裝該應(yīng)用程序:

  • Visit the download page on the official website

    訪問官方網(wǎng)站上的下載頁面

  • Click “Free Download Now”

    點擊“立即免費下載”
  • Open the downloaded file

    打開下載的文件
  • Perform the default installation

    執(zhí)行默認(rèn)安裝
  • Next, we’ll sign into the application:

    接下來,我們將登錄到該應(yīng)用程序:

  • Open TeamViewer

    打開TeamViewer
  • Click “Sign In” in the left panel

    點擊左側(cè)面板中的“登錄”
  • Fill out the account information

    填寫賬戶信息
  • Click “Sign In”

    點擊“登錄”
  • Next, we’ll authorize the computer:

    接下來,我們將授權(quán)計算機:

  • Open the authorization email

    打開授權(quán)電子郵件
  • Click “Add to Trusted Devices”

    點擊“添加到受信任的設(shè)備”
  • Click “Trust”

    點擊“信任”
  • Lastly, we’ll get the computer :

    最后,我們將獲得計算機:

  • Click “Remote Control” in the left panel

    點擊左側(cè)面板中的“遙控器”
  • Write down the “ID” and “Password”

    寫下“ ID”和“密碼”
  • 在筆記本電腦上設(shè)置遠(yuǎn)程桌面: (Set Up the Remote Desktop on the Laptop:)

    This allows the laptop to set up and troubleshoot the server on the PC.

    這使筆記本電腦可以在PC上設(shè)置服務(wù)器并進(jìn)行故障排除。

    First, we’ll install the application:

    首先,我們將安裝該應(yīng)用程序:

  • Visit the official website

    訪問官方網(wǎng)站

  • Click “Free Download Now”

    點擊“立即免費下載”
  • Open the downloaded file

    打開下載的文件
  • Perform the default installation

    執(zhí)行默認(rèn)安裝
  • Next, we’ll sign into the application:

    接下來,我們將登錄到該應(yīng)用程序:

  • Open TeamViewer

    打開TeamViewer
  • Click “Sign In” in the left panel

    點擊左側(cè)面板中的“登錄”
  • Click “Sign In…”

    點擊“登錄...”
  • Fill out account information

    填寫帳戶信息
  • Click “Sign In”

    點擊“登錄”
  • Next, we’ll authorize the computer:

    接下來,我們將授權(quán)計算機:

  • Open the authorization email

    打開授權(quán)電子郵件
  • Click “Add to Trusted Devices”

    點擊“添加到受信任的設(shè)備”
  • Click “Trust”

    點擊“信任”
  • Lastly, we’ll set up the application:

    最后,我們將設(shè)置應(yīng)用程序:

  • Click ”Computers & Contacts” in the left panel

    點擊左側(cè)面板中的“計算機和通訊錄”
  • Click “My Computers” in the center panel

    點擊中央面板中的“我的電腦”
  • Click “Add Computer” in the right panel

    點擊右側(cè)面板中的“添加計算機”
  • Enter the “ID” and “Password” from earlier

    輸入之前的“ ID”和“密碼”
  • Click “OK”

    點擊“確定”
  • Click the “Computer Name” in “My Computers”

    點擊“我的電腦”中的“計算機名稱”
  • Click “Remote Control Using Password” in the right panel

    單擊右側(cè)面板中的“使用密碼進(jìn)行遠(yuǎn)程控制”
  • Remember:

    記得:

    • Both computers must be turned on and awake to establish a connection.

      必須打開兩臺計算機,然后將它們喚醒以建立連接。
    • The connection will automatically terminate after the window is closed.

      關(guān)閉窗口后,連接將自動終止。

    在PC上設(shè)置Python: (Set Up Python on the PC:)

    This Python version was the latest stable version at the time.

    這個Python版本是當(dāng)時的最新穩(wěn)定版本。

    First, we’ll download Python:

    首先,我們將下載Python:

  • Visit the download page on the official website

    訪問官方網(wǎng)站上的下載頁面

  • Scroll to the “Files” section

    滾動到“文件”部分
  • Click the “Executable Installer” that matches your system type

    單擊與您的系統(tǒng)類型匹配的“可執(zhí)行安裝程序”

  • Reference:

    參考:

    • “Windows x86–64 executable installer” refers to Windows 64-bit

      “ Windows x86–64可執(zhí)行安裝程序”是指Windows 64位
    • “Windows x86 executable installer” refers to Windows 32-bit

      “ Windows x86可執(zhí)行安裝程序”是指Windows 32位

    Next, we’ll install Python:

    接下來,我們將安裝Python:

  • Open the downloaded file

    打開下載的文件
  • Check the “Add Python ** to PATH” box

    選中“將Python **添加到PATH”框
  • Perform the default installation

    執(zhí)行默認(rèn)安裝
  • 在PC上設(shè)置OpenSSL: (Set up OpenSSL on the PC:)

    OpenSSL comes preinstalled with Git on Windows 10.

    Windows 10上的Git預(yù)先安裝了OpenSSL。

    在PC上設(shè)置Jupyter: (Set Up Jupyter on the PC:)

    First, we’ll open Command Prompt:

    首先,我們將打開命令提示符:

  • Press “? Windows”

    按“?Windows”
  • Enter “Cmd” into the search bar

    在搜索欄中輸入“ Cmd”
  • Click “Command Prompt”

    點擊“命令提示符”
  • Next, we’ll install Jupyter:

    接下來,我們將安裝Jupyter:

  • Copy the command from below these instructions

    從這些說明下面復(fù)制命令
  • Paste the command into Command Prompt

    將命令粘貼到命令提示符中
  • Press “Enter”

    按“ Enter”
  • python -m pip install jupyter

    Next, we’ll install the Jupyter extension:

    接下來,我們將安裝Jupyter擴(kuò)展:

  • Copy the command from below these instructions

    從這些說明下面復(fù)制命令
  • Paste the command into Command Prompt

    將命令粘貼到命令提示符中
  • Press “Enter”

    按“ Enter”
  • This extension allows Jupyter Notebook to access the GPU in the desktop.

    此擴(kuò)展允許Jupyter Notebook訪問桌面中的GPU。

    python -m pip install jupyter_http_over_ws

    在PC上設(shè)置文本編輯器: (Set Up the Text Editor on the PC:)

    This step only applies to computers that don’t have a text editor installed.

    此步驟僅適用于未安裝文本編輯器的計算機。

    In this section, we’ll install Sublime:

    在本節(jié)中,我們將安裝Sublime:

  • Visit the official website

    訪問官方網(wǎng)站

  • Click “Download for Windows”

    點擊“下載至Windows”
  • Open the downloaded file

    打開下載的文件
  • Perform the default installation

    執(zhí)行默認(rèn)安裝
  • 在PC上編輯PATH環(huán)境變量: (Edit the PATH Environment Variable on the PC:)

    The PATH environment variable is a list of directories that contain commonly used executable files. The Command Prompt uses that list to run programs that execute commands.

    PATH環(huán)境變量是包含常用可執(zhí)行文件的目錄的列表。 命令提示符使用該列表來運行執(zhí)行命令的程序。

    First, we’ll open the PATH environment variable:

    首先,我們將打開PATH環(huán)境變量:

  • Press “? Windows”

    按“?Windows”
  • Enter “Environment Variables” into the search bar

    在搜索欄中輸入“環(huán)境變量”
  • Click “Edit the System Environment Variables”

    單擊“編輯系統(tǒng)環(huán)境變量”
  • Click “Environment Variables…”

    單擊“環(huán)境變量…”
  • Select “Path” in the “User Variables” section

    在“用戶變量”部分中選擇“路徑”
  • Click “Edit”

    點擊“編輯”
  • Next, we’ll add the path that contains the executable Python modules:

    接下來,我們將添加包含可執(zhí)行Python模塊的路徑:

  • Copy the path from below these instructions

    從這些說明下面復(fù)制路徑
  • Click “New”

    點擊“新建”
  • Paste the path into PATH environment variable

    將路徑粘貼到PATH環(huán)境變量中
  • C:\Program Files\Git\usr\bin

    Lastly, we’ll save the changes we’ve made to the PATH environment variable:

    最后,我們將保存對PATH環(huán)境變量所做的更改:

  • Click “OK”

    點擊“確定”
  • Click “OK”

    點擊“確定”
  • Click “OK”

    點擊“確定”
  • The “OK” button must be clicked to save the PATH environment variable.

    必須單擊“確定”按鈕以保存PATH環(huán)境變量。

    在PC上創(chuàng)建SSL證書: (Create an SSL Certificate on the PC:)

    SSL stands for Secure Socket Layer. It’s a standard security method that adds a layer of protection to the data being transferred over the server. It works by establishing an encrypted link between the server and the remote browser.

    SSL代表安全套接字層。 這是一種標(biāo)準(zhǔn)的安全方法,為通過服務(wù)器傳輸?shù)臄?shù)據(jù)增加了一層保護(hù)。 它通過在服務(wù)器和遠(yuǎn)程瀏覽器之間建立加密鏈接來工作。

    First, we’ll open Command Prompt:

    首先,我們將打開命令提示符:

  • Press “? Windows”

    按“?Windows”
  • Enter “Command Prompt” into the search bar

    在搜索欄中輸入“命令提示符”
  • Click “Command Prompt”

    點擊“命令提示符”
  • Next, we’ll use the cd command to navigate to the Python directory:

    接下來,我們將使用cd命令導(dǎo)航到Python目錄:

  • Copy the command from below these instructions

    從這些說明下面復(fù)制命令
  • Paste the command into Command Prompt

    將命令粘貼到命令提示符中
  • Press “Enter”

    按“ Enter”
  • cd %userprofile%\.jupyter

    Next, we’ll create the SSL certificate:

    接下來,我們將創(chuàng)建SSL證書:

  • Copy the command from below these instructions

    從這些說明下面復(fù)制命令
  • Paste the command into Command Prompt

    將命令粘貼到命令提示符中
  • Press “Enter”

    按“ Enter”
  • Enter “US” into “Country Name”

    在“國家名稱”中輸入“美國”
  • Press “Enter”

    按“ Enter”
  • Enter “.” into the remaining fields

    輸入“?!?進(jìn)入其余領(lǐng)域
  • Press “Enter”

    按“ Enter”
  • This command is copied directly from the documentation.

    該命令直接從文檔中復(fù)制。

    openssl req -config “C:\Program Files\Git\usr\ssl\openssl.cnf” -x509 -nodes -days 365 -newkey rsa:1024 -keyout mykey.key -out mycert.pem

    在PC上設(shè)置配置文件: (Set Up a Configuration File on the PC:)

    First, we’ll create the configuration file for Jupyter Notebook:

    首先,我們將為Jupyter Notebook創(chuàng)建配置文件 :

  • Copy the command from below these instructions

    從這些說明下面復(fù)制命令
  • Paste the command into Command Prompt

    將命令粘貼到命令提示符中
  • Press “Enter”

    按“ Enter”
  • This creates the configuration file in the “.jupyter” directory.

    這將在“ .jupyter”目錄中創(chuàng)建配置文件。

    jupyter notebook --generate-config

    Next, we’ll create the an empty JSON file on the Windows PC:

    接下來,我們將在Windows PC上創(chuàng)建一個空的JSON文件:

  • Copy the command from below these instructions

    從這些說明下面復(fù)制命令
  • Paste the command into Command Prompt

    將命令粘貼到命令提示符中
  • Press “Enter”

    按“ Enter”
  • echo > %userprofile%\.jupyter\jupyter_notebook_config.json

    Next, we’ll open Run:

    接下來,我們將打開“運行”:

  • Press “? Windows”

    按“?Windows”
  • Enter “Run” into the search bar

    在搜索欄中輸入“運行”
  • Press “Enter”

    按“ Enter”
  • Next, we’ll open the .jupyter directory:

    接下來,我們將打開.jupyter目錄:

  • Copy the directory path from below these instructions

    從以下說明中復(fù)制目錄路徑
  • Paste the directory path into Run

    將目錄路徑粘貼到“運行”中
  • Click “OK”

    點擊“確定”
  • %userprofile%\.jupyter

    Next, we’ll open the configuration file:

    接下來,我們將打開配置文件:

  • Right-click the file from below these instructions

    從這些說明下面右鍵單擊文件
  • Click “Open with”

    點擊“打開方式”
  • Click “Sublime Text”

    點擊“崇高文字”
  • jupyter_notebook_config.json

    Next, we’ll get the Windows account name:

    接下來,我們將獲得Windows帳戶名:

  • Reopen Command Prompt

    重新打開命令提示符
  • Copy the command from below these instructions

    從這些說明下面復(fù)制命令
  • Paste the command into Command Prompt

    將命令粘貼到命令提示符中
  • Press “Enter”

    按“ Enter”
  • Write down the Windows account name

    寫下Windows帳戶名
  • echo %username%

    Lastly, we’ll add the server configurations:

    最后,我們將添加服務(wù)器配置:

  • Copy the JSON from below these instructions

    從以下說明中復(fù)制JSON
  • Replace “Admin” with the Windows account name

    將“ Admin”替換為Windows帳戶名
  • Paste the JSON into Sublime Text

    將JSON粘貼到Sublime Text中
  • Click “File” in the “Sublime Text” menu bar

    在“ Sublime Text”菜單欄中單擊“ File”
  • Click “Save”

    點擊“保存”
  • Reference:

    參考:

    • These configuration options are copied from the documentation

      這些配置選項是從文檔中復(fù)制的

    • The file paths in the JSON file must use double backslashes

      JSON文件中的文件路徑必須使用雙反斜杠

    在PC上設(shè)置服務(wù)器密碼: (Set Up the Server Password on the PC:)

    In this section, we’ll create a password for the Jupyter Notebook server:

    在本節(jié)中,我們將為Jupyter Notebook服務(wù)器創(chuàng)建一個密碼:

  • Reopen Command Prompt

    重新打開命令提示符
  • Copy the command from below these instructions

    從這些說明下面復(fù)制命令
  • Paste the command into Command Prompt

    將命令粘貼到命令提示符中
  • Press “Return”

    按“返回”
  • Enter a password

    輸入密碼
  • Press “Return”

    按“返回”
  • Re-enter the password

    重新輸入密碼
  • Press “Enter”

    按“ Enter”
  • This adds the hashed password to the JSON configuration file.

    這會將哈希密碼添加到JSON配置文件中。

    jupyter notebook password

    在PC上設(shè)置服務(wù)器: (Set Up the Server on the PC:)

    First, we’ll open Task Scheduler:

    首先,我們將打開任務(wù)計劃程序:

  • Press “? Windows”

    按“?Windows”
  • Enter “Scheduler” into the search bar

    在搜索欄中輸入“計劃程序”
  • Click “Task Scheduler”

    點擊“任務(wù)計劃程序”
  • Next, we’ll create a task that starts a program when Windows starts:

    接下來,我們將創(chuàng)建一個在Windows啟動時啟動程序的任務(wù):

  • Click “Create Basic Task” in the right panel

    點擊右側(cè)面板中的“創(chuàng)建基本任務(wù)”
  • Copy the name from below these instructions

    從以下說明中復(fù)制名稱
  • Paste the name into the “Name” text box

    將名稱粘貼到“名稱”文本框中
  • Click “Next”

    點擊下一步”
  • Select “When the Computer Starts”

    選擇“計算機啟動時”
  • Click “Next”

    點擊下一步”
  • Select “Start a Program”

    選擇“啟動程序”
  • Click “Next”

    點擊下一步”
  • Jupyter Notebook Server

    Next, we’ll specify which program to start:

    接下來,我們將指定要啟動的程序:

  • Copy the path from below these instructions

    從這些說明下面復(fù)制路徑
  • Paste the path into the “Program/Script” text box

    將路徑粘貼到“程序/腳本”文本框中
  • Click “Next”

    點擊下一步”
  • Check “Open the Properties Dialog…”

    選中“打開屬性對話框...”
  • Click “Finish”

    點擊“完成”
  • %userprofile%\AppData\Local\Programs\Python\Python38\Scripts\jupyter-notebook.exe

    Lastly, we’ll specify when to start the program:

    最后,我們將指定何時啟動程序:

  • Select “Run Whether User is Logged On or Not”

    選擇“運行是否登錄用戶”
  • Click “Triggers” in the top tab bar

    點擊頂部標(biāo)簽欄中的“觸發(fā)器”
  • Click “At Startup” trigger

    點擊“啟動時”觸發(fā)器
  • Click “Edit”

    點擊“編輯”
  • Check “Delay Task For”

    檢查“延遲任務(wù)”
  • Enter “30 Seconds”

    輸入“ 30秒”
  • Click “OK”

    點擊“確定”
  • Click “OK”

    點擊“確定”
  • 在筆記本電腦上在家訪問服務(wù)器: (Access the Server at Home on the Laptop:)

    The server should be accessible from the local network after restarting.

    重新啟動后,應(yīng)該可以從本地網(wǎng)絡(luò)訪問服務(wù)器。

    First, we’ll restart the Windows PC:

    首先,我們將重新啟動Windows PC:

  • Restart the Windows PC

    重新啟動Windows PC
  • Wait 30 seconds

    等待30秒
  • Next, we’ll verify that the server is working:

    接下來,我們將驗證服務(wù)器是否正常運行:

  • Visit the server IP address

    訪問服務(wù)器IP地址

  • Click “Advanced”

    點擊“高級”
  • Click “Proceed to 127.0.0.1 (unsafe)”

    點擊“進(jìn)入127.0.0.1(不安全)”
  • Next, we’ll sign into Jupyter Notebook:

    接下來,我們將登錄Jupyter Notebook:

  • Enter the Jupyter Notebook password

    輸入Jupyter Notebook密碼
  • Click “Log-in”

    點擊“登錄”
  • Reload the page

    重新載入頁面
  • Lastly, we’ll bookmark the server IP address:

    最后,我們將服務(wù)器IP地址添加為書簽:

  • Click the “Chrome” menu bar

    點擊“ Chrome”菜單欄
  • Click “Bookmarks”

    點擊“書簽”
  • Click “Bookmark This Tab”

    點擊“為此標(biāo)簽添加書簽”
  • Copy the name from below these instructions

    從以下說明中復(fù)制名稱
  • Paste the name into the “Name” text box

    將名稱粘貼到“名稱”文本框中
  • Click “Done”

    點擊“完成”
  • The browser will display a warning, but the documentation suggests it’s ok.

    瀏覽器將顯示警告,但文檔顯示可以。

    Private Jupyter Notebook Server

    打開PC上的端口: (Open the Port on the PC:)

    First, we’ll open the “Advanced Settings” in the Windows firewall:

    首先,我們將在Windows防火墻中打開“高級設(shè)置”:

  • Press “? Windows”

    按“?Windows”
  • Enter “Settings” into the search bar

    在搜索欄中輸入“設(shè)置”
  • Click “Settings”

    點擊“設(shè)置”
  • Click “Update & Security”

    點擊“更新和安全性”
  • Click “Windows Security” in the left panel

    點擊左側(cè)面板中的“ Windows安全性”
  • Click “Firewall & Network Protection”

    點擊“防火墻和網(wǎng)絡(luò)保護(hù)”
  • Click “Advanced Settings”

    點擊“高級設(shè)置”
  • Click “Yes”

    點擊“是”
  • Next, we’ll add a new inbound rule:

    接下來,我們將添加一個新的入站規(guī)則:

  • Click “Inbound Rules” in the left panel

    點擊左側(cè)面板中的“入站規(guī)則”
  • Click “New Rule…” in the right panel

    點擊右側(cè)面板中的“新規(guī)則...”
  • Select “Port”

    選擇“端口”
  • Click “Next”

    點擊下一步”
  • Select “Specific Local Ports”

    選擇“特定本地端口”
  • Enter “9999”

    輸入“ 9999”
  • Click “Next”

    點擊下一步”
  • Select “Allow the Connection”

    選擇“允許連接”
  • Click “Next”

    點擊下一步”
  • Check “Domain”, “Private” and “Public”

    選中“域”,“私有”和“公共”
  • Click “Next”

    點擊下一步”
  • Copy the server name from below these instructions

    從以下說明中復(fù)制服務(wù)器名稱
  • Paste the server name into the “Name” text box

    將服務(wù)器名稱粘貼到“名稱”文本框中
  • Click “Finish”

    點擊“完成”
  • Jupyter Notebook Server

    驗證端口在PC上是否正常工作: (Verify the Port is Working on the PC:)

    The port should be accessible from remote networks after it’s opened:

    打開端口后,應(yīng)該可以從遠(yuǎn)程網(wǎng)絡(luò)訪問該端口:

    In this section, we’ll verify that the port is working:

    在本節(jié)中,我們將驗證端口是否正常工作:

  • Visit a port checking website

    訪問端口檢查網(wǎng)站

  • Enter “9999” in to the “Port to Check” text box

    在“檢查端口”文本框中輸入“ 9999”
  • Click “Check Port”

    點擊“檢查端口”
  • 在PC上設(shè)置端口轉(zhuǎn)發(fā): (Set Up Port Forwarding on the PC:)

    This video has a simple explanation of LAN, WAN, and Port Forwarding.

    該視頻簡單介紹了LAN,WAN和端口轉(zhuǎn)發(fā)。

    First, we’ll get the local IP address of the Windows PC:

    首先,我們將獲得Windows PC的本地IP地址:

  • Reopen Command Prompt

    重新打開命令提示符
  • Copy the command from below these instructions

    從這些說明下面復(fù)制命令
  • Paste the command into Command Prompt

    將命令粘貼到命令提示符中
  • Press “Enter”

    按“ Enter”
  • Copy the “IPv4 Address”

    復(fù)制“ IPv4地址”
  • ipconfig

    Next, we’ll sign into the local router:

    接下來,我們將登錄到本地路由器:

  • Visit the router IP address

    訪問路由器IP地址

  • Sign into the router

    登錄路由器
  • Find the “Port Forwarding” page

    找到“端口轉(zhuǎn)發(fā)”頁面
  • Lastly, we’ll set up the port forwarding:

    最后,我們將設(shè)置端口轉(zhuǎn)發(fā):

  • Paste the IP Address into the “Enter IP Address” text box

    將IP地址粘貼到“輸入IP地址”文本框中
  • Enter “9999” into the “WAN Starting Port” text box

    在“ WAN起始端口”文本框中輸入“ 9999”
  • Enter “9999” into the “WAN Ending Port” text box

    在“ WAN Ending Port”文本框中輸入“ 9999”
  • Select “All IP Addresses”

    選擇“所有IP地址”
  • Click “Apply”

    點擊“應(yīng)用”
  • The specific steps for each router will likely vary, but it should be similar.

    每個路由器的具體步驟可能會有所不同,但是應(yīng)該相似。

    從筆記本電腦上的任何位置訪問服務(wù)器: (Access the Server from Anywhere on the Laptop:)

    First, we’ll get the public IP address on the Windows PC:

    首先,我們將在Windows PC上獲得公共IP地址:

  • Google the public IP address

    Google的公共IP地址

  • Write down the public IP address

    寫下公共IP地址
  • Next, we’ll construct the server IP address:

    接下來,我們將構(gòu)建服務(wù)器IP地址:

  • Add the HTTPS protocol to the front of the public IP address

    將HTTPS協(xié)議添加到公共IP地址的前面
  • Add the port number to the end of the public IP address

    將端口號添加到公用IP地址的末尾
  • Write down the server IP address

    記下服務(wù)器IP地址
  • https://public_IP_address:9999

    Next, we’ll visit the server IP address on the laptop:

    接下來,我們將在筆記本電腦上訪問服務(wù)器IP地址:

  • Visit the server IP address in Chrome

    在Chrome中訪問服務(wù)器IP地址
  • Type “thisisunsafe”

    輸入“ thisisunsafe”
  • Allow the page to reload

    允許頁面重新加載
  • Next, we’ll sign into Jupyter Notebook:

    接下來,我們將登錄Jupyter Notebook:

  • Enter the Jupyter Notebook password

    輸入Jupyter Notebook密碼
  • Click “Log-in”

    點擊“登錄”
  • Reload the page

    重新載入頁面
  • Lastly, we’ll bookmark the server IP address:

    最后,我們將服務(wù)器IP地址添加為書簽:

  • Click “Bookmarks” in the “Chrome” menu bar

    點擊“ Chrome”菜單欄中的“書簽”
  • Click “Bookmark This Tab”

    點擊“為此標(biāo)簽添加書簽”
  • Copy the name from below these instructions

    從以下說明中復(fù)制名稱
  • Paste the name into the “Name” text box

    將名稱粘貼到“名稱”文本框中
  • Click “Done”

    點擊“完成”
  • Public Jupyter Notebook Server

    Remember:

    記得:

    • The server isn’t accessible on the local IP address from a remote network

      無法通過遠(yuǎn)程網(wǎng)絡(luò)在本地IP地址上訪問服務(wù)器
    • The browser can’t connect to the server without the HTTPS protocol

      沒有HTTPS協(xié)議,瀏覽器無法連接到服務(wù)器
    • The browser can’t connect to the server without the port number

      沒有端口號,瀏覽器無法連接到服務(wù)器
    • A remote network refers to any network that isn’t the local network

      遠(yuǎn)程網(wǎng)絡(luò)是指不是本地網(wǎng)絡(luò)的任何網(wǎng)絡(luò)

    在PC上設(shè)置靜態(tài)IP地址: (Set Up a Static IP Address on the PC:)

    By default, most internet service providers assign a dynamic IP address to devices. This means the IP address changes regularly. While that’s good for security, it’s bad for remote connections.

    默認(rèn)情況下,大多數(shù)Internet服務(wù)提供商將動態(tài)IP地址分配給設(shè)備。 這意味著IP地址會定期更改。 雖然這對安全性有好處,但對遠(yuǎn)程連接卻不利。

    This article has a good introduction to “Dynamic” and “Static” IP addresses.

    本文對“動態(tài)”和“靜態(tài)” IP地址進(jìn)行了很好的介紹。

    First, we’ll set get the network details:

    首先,我們將獲取網(wǎng)絡(luò)詳細(xì)信息:

  • Reopen Command Prompt

    重新打開命令提示符
  • Copy the command from below these instructions

    從這些說明下面復(fù)制命令
  • Paste the command into Command Prompt

    將命令粘貼到命令提示符中
  • Press “Enter”

    按“ Enter”
  • ipconfig /all

    Next, we’ll write down the following details:

    接下來,我們將寫下以下詳細(xì)信息:

    • IPv4 address

      IPv4地址
    • Subnet Mask

      子網(wǎng)掩碼
    • Default Gateway

      默認(rèn)網(wǎng)關(guān)
    • Preferred DNS server (top)

      首選DNS服務(wù)器(頂部)
    • Alternate DNS server (bottom)

      備用DNS服務(wù)器(底部)

    Next, we’ll open the network adapter properties:

    接下來,我們將打開網(wǎng)絡(luò)適配器屬性:

  • Press “? Windows”

    按“?Windows”
  • Enter “Control Panel”

    輸入“控制面板”
  • Click “Control Panel”

    點擊“控制面板”
  • Click “View Network Stats and Tasks”

    點擊“查看網(wǎng)絡(luò)統(tǒng)計信息和任務(wù)”
  • Click “Change Adapter Settings”

    點擊“更改適配器設(shè)置”
  • Right-click the network adapter used to connect to the internet

    右鍵單擊用于連接到Internet的網(wǎng)絡(luò)適配器
  • Click “Properties”

    點擊“屬性”
  • Next, we’ll open the Internet Protocol Version 4 properties:

    接下來,我們將打開“ Internet協(xié)議版本4”屬性:

  • Select “Internet Protocol Version 4 (TCP/IPv4)”

    選擇“ Internet協(xié)議版本4(TCP / IPv4)”
  • Click “Properties”

    點擊“屬性”
  • Select “Use the Following IP Address”

    選擇“使用以下IP地址”
  • Enter the relevant details from earlier

    輸入先前的相關(guān)詳細(xì)信息
  • Select “Use the Following DNS Server Addresses”

    選擇“使用以下DNS服務(wù)器地址”
  • Enter the relevant details from earlier

    輸入先前的相關(guān)詳細(xì)信息
  • Click “OK”

    點擊“確定”
  • 致謝: (Acknowledgements:)

    TaxiCat helped troubleshoot the firewall, router, and port forwarding.

    TaxiCat幫助解決了防火墻,路由器和端口轉(zhuǎn)發(fā)問題。

    This article helped suggest TeamViewer.

    本文有助于建議TeamViewer。

    This article helped schedule the server.

    本文有助于安排服務(wù)器。

    This article helped set up the static IP address.

    本文有助于設(shè)置靜態(tài)IP地址。

    翻譯自: https://medium.com/swlh/how-to-set-up-a-jupiter-notebook-server-and-access-it-from-a-local-or-remote-network-on-windows-d335c5ba490d

    總結(jié)

    以上是生活随笔為你收集整理的如何设置Jupiter Notebook服务器并从任何地方访问它(Windows 10)的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。