我在远程服务器上运行一台笔记本电脑,通过浏览器从本地计算机连接到该服务器。我有一个小小的烦恼,那就是它会在开始时打印以下内容:
Serving notebooks from local directory: /home/xxxxxxx
0 active kernels
The Jupyter Notebook is running at:
http://(friendly or 127.0.0.1):8888/
其中friendly是主机的友好名称。主机的完全限定域名实际上是friendly.x.y.z.com。我希望它打印以下内容:
The Jupyter Notebook is runni
我正在Ubuntu 21.10上运行一个木星笔记本。我安装了python、jupyter笔记本和所有各种先决条件。我将export PATH=$PATH:~/.local/bin添加到bashrc中,这样命令jupyter notebook就可以从终端运行。
当我从终端调用jupyter notebook时,我从浏览器中得到以下错误消息:
Access to the file was denied.
The file at /home/username/.local/share/jupyter/runtime/nbserver-260094-open.html is not readable
我想通过web浏览器远程访问笔记本服务器,显示了我是如何设置笔记本服务器的:
1.生成配置文件
$ jupyter-notebook --generate-config
$ cd ~/.jupyter
2.使用以下命令创建SSL证书(Linux和Windows)。
req -x509 -nodes -days 365 -newkey rsa:1024 -keyout mycert.pem -out mycert.pem
3.编辑配置文件的配置文件,该文件是生成密码的jupyter_notebook_config.py。
c = get_config()
# You must give the