标签: jupyter-lab

没有 nodejs 无法确定 jupyterlab 构建状态

我在终端中看到此错误:“没有 nodejs 无法确定 jupyterlab 构建状态”。即使我的 PC 上安装了最新版本的 nodejs。

请指导我该怎么办?

node.js jupyter-lab

12
推荐指数
2
解决办法
2万
查看次数

在 jupyter 笔记本单元上加载 markdown 文件

我知道 magic 命令的存在%load markdown_file.md,但这将在单元格的第一次运行时加载文件的内容。如果文件发生更改,单元格将不会更新。有谁知道是否可以避免这个问题并在每次单元运行时加载文件的内容?

python markdown jupyter-notebook jupyter-lab

12
推荐指数
1
解决办法
5512
查看次数

加载自定义 conda env 在 SageMaker 中不起作用

我已miniconda在我的 AWS SageMaker 持久 EBS 实例上安装。这是我的起始脚本:

#!/bin/bash

set -e

# OVERVIEW
# This script installs a custom, persistent installation of conda on the Notebook Instance's EBS volume, and ensures
# that these custom environments are available as kernels in Jupyter.
# 
# The on-start script uses the custom conda environment created in the on-create script and uses the ipykernel package
# to add that as a kernel in Jupyter.
#
# For another example, see:
# https://docs.aws.amazon.com/sagemaker/latest/dg/nbi-add-external.html#nbi-isolated-environment

sudo …
Run Code Online (Sandbox Code Playgroud)

python amazon-web-services conda jupyter-lab amazon-sagemaker

12
推荐指数
1
解决办法
7960
查看次数

升级 pandas 后无法读取 Jupyter Lab Notebook(捕获验证错误)

我最近正在使用 Jupyter 实验室,并决定将我的 pandas 版本从 1.2 更新到最新的 (1.4)。所以我运行了“conda update pandas”,它似乎工作得很好。然而,当我以通常的方式“jupyter lab”启动 Jupyter lab 并尝试打开我刚刚处理的工作簿时,出现以下错误:

无法读取的笔记本:C:\Users...\script.ipynb TypeError(" init () 获得意外的关键字参数 'capture_validation_error'")

当我尝试打开以前工作正常的任何 .ipynb 文件时,我遇到了同样的错误。我也可以在 jupyter 笔记本中很好地打开它们,但由于某种原因它们不再在 Jupyter 实验室中工作。知道我该如何解决这个问题吗?

谢谢

python pandas jupyter-notebook jupyter-lab

12
推荐指数
1
解决办法
2946
查看次数

在JupyterLab中显示代码行号

在Jupyter笔记本中,cntrl+ m L切换当前单元格中的代码行号但是如何在JupyterLab中引入代码行号?

提到了在github中打开的类似问题

jupyter-notebook jupyter-lab

11
推荐指数
3
解决办法
6352
查看次数

列出 jupyter 实验室的运行实例

Jupyter notebook 附带有用的命令:

jupyter notebook list
Run Code Online (Sandbox Code Playgroud)

它输出当前用户的所有正在运行的服务器实例。此外,它还列出了相关的访问令牌。

Jupyter 实验室似乎没有这个功能。

浏览jupyter lab手册我找不到类似的命令(不是类似的语法似乎有效)。

关于如何为正在运行的服务器获取端口和令牌的任何建议?

jupyter jupyter-notebook jupyter-lab

11
推荐指数
2
解决办法
7557
查看次数

没有名为 ipykernel_launcher 的模块

我正在尝试将 pyenv-virtual env 注册为 MacO 上的jupiter lab内核。我在 ubuntu 上有这个工作,但我在我的 MacBook 上遇到了问题。

我按照此处的说明创建了以下内核规范文件。

{
"argv": [
"/Users/david/.pyenv/versions/python36-tf2/bin/python",
"-m",
"ipykernel_launcher",
"-f",
"{connection_file}"
],
"display_name": "Python (3.6.8 TF2.0)",
"language": "python"
}
Run Code Online (Sandbox Code Playgroud)

我通过运行测试Users/david/.pyenv/versions/python36-tf2/bin/python -m ipykernel_launcher,它工作正常。

但是当我运行jupiter lab(系统python)然后尝试使用新内核时,它会中止并显示日志消息

/Users/david/.pyenv/versions/python36-tf20/bin/python:没有名为 ipykernel_launcher 的模块

任何想法如何修复,pyenv 绝对可以运行ipykernel_launcher

macos virtualenv jupyter jupyter-notebook jupyter-lab

11
推荐指数
2
解决办法
6538
查看次数

JupyterLab 中 Plotly 的正确扩展是什么?

Plotly 无法在 Jupyterlab 中运行。我认为所需的扩展存在冲突,但我不确定。在 Plotly https://plotly.com/python/troubleshooting/上检查故障排除时,他们建议删除扩展并再次安装。但我发现 Jupyterlab 更新附带了一个名为“ jupyterlab-plotly-extension ”的附加扩展,Plotly 在其说明中没有提到该扩展,以使其在 JupyterLab 中工作https://plotly.com/python/getting-started/ #jupyterlab-support-python-35

我的问题是:应该安装哪些扩展才能使 Plotly 在 JupyterLab 中工作?

  • Plotly 支持中提到的 jupyterlab-plotly
  • JupyterLab 附带的 jupyterlab-plotly-extension

python libraries plotly jupyter jupyter-lab

11
推荐指数
2
解决办法
2万
查看次数

JupyterLab 3.0.14 如何禁用代码样式突出显示(pycodestyle)

我刚刚安装了 JupyterLab 3.0.14 附带的 WPy64-3940 。
令我惊讶的是,现在我的代码被称为“pycodestyle”的东西所装饰。
如下所示,代码带有橙色下划线,并且会出现一个弹出窗口。
我一点也不喜欢这样,它影响我的阅读。
你知道它从哪里来以及我如何禁用它吗?

谢谢
米歇尔

在此输入图像描述

jupyter-lab pycodestyle

11
推荐指数
1
解决办法
6045
查看次数

Ipywidgets 未显示并出现 JavaScript 错误

目前,我们的团队正在使用 JupyterHub。当我尝试在 JupyterLab 中使用 ipywidgets 时,出现此 JavaScript 错误(https 地址被删除)

\n

代码

\n
import ipywidgets as widgets\n\nslider = widgets.FloatSlider(description=\'$x$\')\ntext = widgets.FloatText(disabled=True, description=\'$x^2$\')\n\ndef compute(*ignore):\n    text.value = str(slider.value ** 2)\n\nslider.observe(compute, \'value\')\n\nslider.value = 4\n\nwidgets.VBox([slider, text])\n
Run Code Online (Sandbox Code Playgroud)\n

笔记本上的错误:

\n
[Open Browser Console for more detailed log - Double click to close this message]\nFailed to load model class \'VBoxModel\' from module \'@jupyter-widgets/controls\'\nError: Module @jupyter-widgets/controls, version ^1.5.0 is not registered, however,         2.0.0 is\n    at f.loadClass (/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/134.bcbea9feb6e7c4da7530.js?v=bcbea9feb6e7c4da7530:1:74977)\n    at f.loadModelClass (/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/150.3e1e5adfd821b9b96340.js?v=3e1e5adfd821b9b96340:1:10729)\n    at f._make_model (/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/150.3e1e5adfd821b9b96340.js?v=3e1e5adfd821b9b96340:1:7517)\n    at f.new_model (/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/150.3e1e5adfd821b9b96340.js?v=3e1e5adfd821b9b96340:1:5137)\n    at f.handle_comm_open …
Run Code Online (Sandbox Code Playgroud)

jupyter-notebook jupyterhub ipywidgets jupyter-lab

11
推荐指数
1
解决办法
1552
查看次数