- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
所以我试图在生产模式(Centos)下使用 JupyterLab 设置 JupyterHub 服务。为简单起见,我选择了系统用户身份验证 (PAM)。所以现在我有几个用户能够运行单个服务器。问题是我需要设置一个 JupyterLab 才能正常工作。
我做了一切(可能还有更多)jupyterhub 文档告诉我要做的事情:
jupyter serverextension enable --py jupyterlab --sys-prefix
) c.Spawner.cmd = ["jupyter-labhub"]
) /lab
url 仍然返回 404 错误。Jun 29 14:48:51 jupyter-infra-1 pipenv[11806]: Message: '404 GET /user/nataliya/lab (nataliya@::ffff:127.0.0.1) 57.16ms'
Jun 29 14:48:51 jupyter-infra-1 pipenv[11806]: Arguments: ()
Jun 29 14:48:51 jupyter-infra-1 pipenv[11806]: --- Logging error ---
Jun 29 14:48:51 jupyter-infra-1 pipenv[11806]: Traceback (most recent call last): Jun 29 14:48:51 jupyter-infra-1 pipenv[11806]: File "/usr/local/lib64/python3.8/site-packages/tornado/web.py", line 1681, in _execute
Jun 29 14:48:51 jupyter-infra-1 pipenv[11806]: result = self.prepare()
Jun 29 14:48:51 jupyter-infra-1 pipenv[11806]: File "/usr/local/lib/python3.8/site-packages/notebook/base/handlers.py", line 697, in prepare
Jun 29 14:48:51 jupyter-infra-1 pipenv[11806]: raise web.HTTPError(404)
Jun 29 14:48:51 jupyter-infra-1 pipenv[11806]: tornado.web.HTTPError: HTTP 404: Not Found
可能与控制台输出无关:
Jun 29 14:39:36 jupyter-infra-1 pipenv[11806]: raise web.HTTPError(404, u'Kernel does not exist: %s' % kernel_id)
Jun 29 14:39:36 jupyter-infra-1 pipenv[11806]: tornado.web.HTTPError: HTTP 404: Not Found (Kernel does not exist: d85c98fa-2998-4fb3-85e2-8dc6ecbd093a)
Jun 29 14:39:36 jupyter-infra-1 pipenv[11806]: During handling of the above exception, another exception occurred:
Jun 29 14:39:36 jupyter-infra-1 pipenv[11806]: Traceback (most recent call last):
Jun 29 14:39:36 jupyter-infra-1 pipenv[11806]: File "/usr/lib64/python3.8/logging/__init__.py", line 1081, in emit
Jun 29 14:39:36 jupyter-infra-1 pipenv[11806]: msg = self.format(record)
Jun 29 14:39:36 jupyter-infra-1 pipenv[11806]: File "/usr/lib64/python3.8/logging/__init__.py", line 925, in format
Jun 29 14:39:36 jupyter-infra-1 pipenv[11806]: return fmt.format(record)
Jun 29 14:39:36 jupyter-infra-1 pipenv[11806]: File "/usr/local/lib64/python3.8/site-packages/tornado/log.py", line 196, in format
Jun 29 14:39:36 jupyter-infra-1 pipenv[11806]: formatted = self._fmt % record.__dict__
我没有任何想法,因此将不胜感激。
最佳答案
所以,我通过 pip3 安装 jupyterlab 包来解决这个问题。
这就是它的样子:
/home/jupyterhub/.local/bin/pipenv run jupyter serverextension enable --py jupyterlab --user
的用户启用 jupyterlabModuleNotFoundError: No module named 'jupyterlab'I re-checked that my Pipfile.lock includes a jupyterlab extension... and it was!2. I tried to install jupyterlab with the most standart way:
pip3 install jupyterlab
它做了一件事!
关于centos - 在 jupyterHub 上为 jupyterLab 获取 404,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68185409/
有谁知道是否有键盘快捷键可以在 JupyterLab 中切换下一个/上一个选项卡(如果有,怎么做)?或者我们是否可以自定义键盘快捷键? 编辑 此 youtube展示了如何在 JupyterLab 中自
我想从终端启动 Jupyterlab 我使用的是 MacOS 10.14。我用 Homebrew 安装了 Python我尝试使用 brew install jupyterlab 安装 Jupyter
每次要自动完成时按 Tab 键似乎很耗时。理想情况下,您只需输入前几个字母,无需按 Tab 键即可获得下拉列表。 在 Jupyter Notebook 中,您可以安装一些扩展以获得此功能。 https
下面的代码是在Jupyter Lab打开的notebook中执行的(不是Jupiter notebook),但是没有显示情节。 还有人遇到这个问题吗?您是否需要运行特殊命令才能在 Jupyter La
我想从 Jupyterlab(在谷歌云实例上运行)下载一个包含 pickle 文件的文件夹,但我找不到这样做的方法。显然,允许下载单个文件,但我的文件夹中有大约 500 个 pickle 文件要下载,
在 JupyterLab 中,屏幕左侧的导航 Pane 非常有用,但占用了大量空间。有没有办法隐藏它,以便我们可以使用导航器窗口的整个宽度查看笔记本? 最佳答案 我自己的问题的答案是,呃,您只需单击"
我想知道 JupyterLab 是否有一个 API,允许我以编程方式将文件从本地存储上传到 JupyterLab 门户。目前,我可以通过用户界面手动选择“上传”,但我想自动执行此操作。 我搜索了他们的
使用旧的 Jupyter 笔记本,我可以通过以下方式创建交互式绘图: import matplotlib.pyplot as plt %matplotlib notebook x = [1,2,3]
有没有办法调整 jupyterlab 笔记本中滚动输出的高度? 可能的解决方案,但需要 HTML/CSS 知识 我从这个问题 resize ipython notebook output window
当使用 Chrome 的深色模式时,jupyterlab 光标是不可见的,因为它默认为黑色。 任何解决方法? 最佳答案 这是一个解决方案。在以下路径中查找所有 index.css 文件: ~\anac
我在 JupyterLab 中有一个名为 myfolder 的文件夹(包含多个文件)。我可以下载文件但不能下载文件夹,因为 JupyterLab 不允许。因此,我想压缩该文件夹,然后将其下载到我的 t
我想在 Jupyerlab 笔记本中编写代码,该笔记本无需用户执行任何操作即可运行其他单元。我找到了解决方案: from IPython.display import Javascript Javas
我正在尝试使用 JupyterLab 在循环中更新交互式 matplotlib 图。如果我在与循环不同的单元格中创建图形,我可以执行此操作,但我更愿意在同一单元格中创建图形并运行循环。 简单代码示例:
我的 jupyter lab 没有显示任何图标这是它的显示方式 这是我使用这 2 个命令运行 jupyter lab 的时候 conda activate python_cvcourse jupyte
我想将 JupyterLab 笔记本(不是 Jupyter Notebook)导出为 HTML。 我在笔记本内部使用以下代码,正确导出笔记本:os.popen('jupyter nbconvert c
我想编辑 JupyterLab 深色主题,以便可以清楚地读取内联图中的轴标签。问题示例: 为了解决这个问题,我想将包含图像的输出单元格的背景颜色更改为灰色阴影。我使用 Chrome DevTools
当使用 JupyterLab(版本 0.32.0)深色主题时,由于前景色和背景色非常接近,所以图形刻度和图例是不可见的。如何让它们可见? 以下是一些用于说明的屏幕截图: 绘制代码: import ma
关闭。这个问题不满足Stack Overflow guidelines .它目前不接受答案。 想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。 去年关闭。 Improve this
我正在尝试新的 JupyterLab,但在保存数字时遇到了麻烦。使用普通的 Jupyter 笔记本,我可以用两个手指点击(使用 macOS、Safari 或 Chrome),然后我会得到一个浏览器菜单
我利用 Docker 容器来启动 JupyterLabs,并且希望能够在启动时直接应用用户设置,而不是在每次容器启动时通过“高级设置编辑器”GUI 配置用户设置。 在审查以下拉取请求时,似乎确实应该存
我是一名优秀的程序员,十分优秀!