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

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > windows >内容正文

windows

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

發(fā)布時間:2023/12/15 windows 23 豆豆
生活随笔 收集整理的這篇文章主要介紹了 如何设置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

    內存
  • GPU

    顯卡
  • HDD/SSD/NVMe

    硬盤/ SSD / NVMe

目錄: (Table of Contents:)

  • Set Up the Remote Desktop on the PC

    在PC上設置遠程桌面

  • Set Up the Remote Desktop on the Laptop

    在筆記本電腦上設置遠程桌面

  • Set Up Python on the PC

    在PC上設置Python

  • Set up OpenSSL on the PC

    在PC上設置OpenSSL

  • Set Up Jupyter on the PC

    在PC上設置Jupyter

  • Set Up the Text Editor on the PC

    在PC上設置文本編輯器

  • 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上設置配置文件

  • Set Up the Server Password on the PC

    在PC上設置服務器密碼

  • Set Up the Server on the PC

    在PC上設置服務器

  • Access the Server at Home on the Laptop

    在筆記本電腦上在家訪問服務器

  • Open the Port on the PC

    在PC上打開端口

  • Verify the Port is Working on the PC

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

  • Set Up Port Forwarding on the PC

    在PC上設置端口轉發(fā)

  • Access the Server From Anywhere on the Laptop

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

  • Set Up a Static IP Address on the PC

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

在PC上設置遠程桌面: (Set Up the Remote Desktop on the PC:)

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

遠程桌面僅用于設置PC并對其進行故障排除。

First, we’ll create a TeamViewer account:

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

  • Visit the official website

    訪問官方網站

  • Fill out the account information

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

    點擊“注冊”
  • Verify the email address

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

    接下來,我們將安裝該應用程序:

  • Visit the download page on the official website

    訪問官方網站上的下載頁面

  • Click “Free Download Now”

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

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

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

    接下來,我們將登錄到該應用程序:

  • Open TeamViewer

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

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

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

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

    接下來,我們將授權計算機:

  • Open the authorization email

    打開授權電子郵件
  • Click “Add to Trusted Devices”

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

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

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

  • Click “Remote Control” in the left panel

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

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

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

    這使筆記本電腦可以在PC上設置服務器并進行故障排除。

    First, we’ll install the application:

    首先,我們將安裝該應用程序:

  • Visit the official website

    訪問官方網站

  • Click “Free Download Now”

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

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

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

    接下來,我們將登錄到該應用程序:

  • Open TeamViewer

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

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

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

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

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

    接下來,我們將授權計算機:

  • Open the authorization email

    打開授權電子郵件
  • Click “Add to Trusted Devices”

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

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

    最后,我們將設置應用程序:

  • Click ”Computers & Contacts” in the left panel

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

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

    點擊右側面板中的“添加計算機”
  • 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

    單擊右側面板中的“使用密碼進行遠程控制”
  • Remember:

    記得:

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

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

      關閉窗口后,連接將自動終止。

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

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

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

    First, we’ll download Python:

    首先,我們將下載Python:

  • Visit the download page on the official website

    訪問官方網站上的下載頁面

  • 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í)行默認安裝
  • 在PC上設置OpenSSL: (Set up OpenSSL on the PC:)

    OpenSSL comes preinstalled with Git on Windows 10.

    Windows 10上的Git預先安裝了OpenSSL。

    在PC上設置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

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

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

    按“ Enter”
  • python -m pip install jupyter

    Next, we’ll install the Jupyter extension:

    接下來,我們將安裝Jupyter擴展:

  • Copy the command from below these instructions

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

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

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

    此擴展允許Jupyter Notebook訪問桌面中的GPU。

    python -m pip install jupyter_http_over_ws

    在PC上設置文本編輯器: (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

    訪問官方網站

  • Click “Download for Windows”

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

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

    執(zhí)行默認安裝
  • 在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

    從這些說明下面復制路徑
  • 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代表安全套接字層。 這是一種標準的安全方法,為通過服務器傳輸?shù)臄?shù)據(jù)增加了一層保護。 它通過在服務器和遠程瀏覽器之間建立加密鏈接來工作。

    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命令導航到Python目錄:

  • Copy the command from below these instructions

    從這些說明下面復制命令
  • 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

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

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

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

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

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

    輸入“。” 進入其余領域
  • Press “Enter”

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

    該命令直接從文檔中復制。

    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上設置配置文件: (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

    從這些說明下面復制命令
  • 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

    從這些說明下面復制命令
  • 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

    從以下說明中復制目錄路徑
  • 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

    從這些說明下面復制命令
  • 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:

    最后,我們將添加服務器配置:

  • Copy the JSON from below these instructions

    從以下說明中復制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

      這些配置選項是從文檔中復制的

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

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

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

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

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

  • Reopen Command Prompt

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

    從這些說明下面復制命令
  • 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上設置服務器: (Set Up the Server on the PC:)

    First, we’ll open Task Scheduler:

    首先,我們將打開任務計劃程序:

  • Press “? Windows”

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

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

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

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

  • Click “Create Basic Task” in the right panel

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

    從以下說明中復制名稱
  • 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

    從這些說明下面復制路徑
  • 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

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

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

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

    檢查“延遲任務”
  • Enter “30 Seconds”

    輸入“ 30秒”
  • Click “OK”

    點擊“確定”
  • Click “OK”

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

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

    重新啟動后,應該可以從本地網絡訪問服務器。

    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:

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

  • Visit the server IP address

    訪問服務器IP地址

  • Click “Advanced”

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

    點擊“進入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:

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

  • Click the “Chrome” menu bar

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

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

    點擊“為此標簽添加書簽”
  • Copy the name from below these instructions

    從以下說明中復制名稱
  • 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防火墻中打開“高級設置”:

  • Press “? Windows”

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

    在搜索欄中輸入“設置”
  • Click “Settings”

    點擊“設置”
  • Click “Update & Security”

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

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

    點擊“防火墻和網絡保護”
  • Click “Advanced Settings”

    點擊“高級設置”
  • Click “Yes”

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

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

  • Click “Inbound Rules” in the left panel

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

    點擊右側面板中的“新規(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

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

    將服務器名稱粘貼到“名稱”文本框中
  • 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:

    打開端口后,應該可以從遠程網絡訪問該端口:

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

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

  • Visit a port checking website

    訪問端口檢查網站

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

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

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

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

    該視頻簡單介紹了LAN,WAN和端口轉發(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

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

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

    按“ Enter”
  • Copy the “IPv4 Address”

    復制“ 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

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

    最后,我們將設置端口轉發(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”

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

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

    從筆記本電腦上的任何位置訪問服務器: (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:

    接下來,我們將構建服務器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

    記下服務器IP地址
  • https://public_IP_address:9999

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

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

  • Visit the server IP address in Chrome

    在Chrome中訪問服務器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:

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

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

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

    點擊“為此標簽添加書簽”
  • Copy the name from below these instructions

    從以下說明中復制名稱
  • 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

      無法通過遠程網絡在本地IP地址上訪問服務器
    • The browser can’t connect to the server without the HTTPS protocol

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

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

      遠程網絡是指不是本地網絡的任何網絡

    在PC上設置靜態(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.

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

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

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

    First, we’ll set get the network details:

    首先,我們將獲取網絡詳細信息:

  • Reopen Command Prompt

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

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

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

    按“ Enter”
  • ipconfig /all

    Next, we’ll write down the following details:

    接下來,我們將寫下以下詳細信息:

    • IPv4 address

      IPv4地址
    • Subnet Mask

      子網掩碼
    • Default Gateway

      默認網關
    • Preferred DNS server (top)

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

      備用DNS服務器(底部)

    Next, we’ll open the network adapter properties:

    接下來,我們將打開網絡適配器屬性:

  • Press “? Windows”

    按“?Windows”
  • Enter “Control Panel”

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

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

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

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

    右鍵單擊用于連接到Internet的網絡適配器
  • 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

    輸入先前的相關詳細信息
  • Select “Use the Following DNS Server Addresses”

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

    輸入先前的相關詳細信息
  • Click “OK”

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

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

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

    This article helped suggest TeamViewer.

    本文有助于建議TeamViewer。

    This article helped schedule the server.

    本文有助于安排服務器。

    This article helped set up the static IP address.

    本文有助于設置靜態(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

    總結

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

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