问题标签 [jupyter-lab]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
649 浏览

syntax - JupyterLab/Codemirror 添加新的语言模式

我是 JupyterLabs 和 Codemirror 的新手,但是,我有一个新的 simplemode 语言语法定义,我想申请 Clingo。我将文件基于 Dockerfile 模式。但是,我不知道如何将此文件包含在 JupyterLab 的构建中。我确实设法让 JL 按照此处的说明进行构建,但我不确定如何将我的文件包含在构建过​​程中。

第 11 行packages/codemirror/src/mode.ts有:

import 'codemirror/mode/meta';

哪种让我相信如果我在 meta.js 文件中包含一行,并将我的模式文件夹放在该目录中,它会在构建过程中找到,但情况似乎并非如此。

任何帮助将不胜感激。谢谢你。

0 投票
3 回答
4394 浏览

python - Install jupyterlab in pip3 throws 'TypeError: expected string or bytes-like object'

Background

  • I was trying to install Jupyter Lab using pip3 install jupyterlab, and it threw the same error.

  • I did not figure it out. Found a workaround using pip2 install jupyterlab -- it worked, but clearly was a bandaid fix.

  • tried running import pandas as pd in the python3 notebook (inside jupyter lab); module was not found.

  • I am using Cygwin as my linux emulator on a PC.

  • I prefer python3.x over python 2.7.

My attempts to resolve the issue

I have a hard time interpreting the Traceback, but here it is below:

Why is the version returned not a string or byte? Is there a bug in my python 3.6 package itself? I am thinking about opening up those files in the traceback to see if I can debug it, but I thought I should ask for help before attempting something that sounds a little ridiculous, imo.

Other things I have tried

  • pip2 install --upgrade pip - this returns a message saying pip in python2.7 is up-to-date.

Traceback (pip2):

  • pip3 install --upgrade pip - this returns the same TypeError above

Traceback (pip3): see the first Traceback

pip version and python site output

0 投票
0 回答
635 浏览

python - jupyter notebook 将绘图调整为全单元格宽度

我想绘制一个折线图(在 python 中)并将绘图大小设置为 jupyter 或 jupyterlab 笔记本的单元格的全宽。(此外,如果单元格宽度发生变化,我希望收到通知并有机会更改绘图大小)

我知道matplotlib.rcParams['figure.figsize'] = (x, y),但是我将 x 和 y 设置为什么?单元格宽度是否可发现?

0 投票
1 回答
490 浏览

jupyter - JupyterLab 使用自定义驱动器覆盖文件浏览器内容

我正在尝试创建自己的 Filebrowser 扩展,该扩展使用 IRODS 而不是本地文件浏览。我的工作基于在此处找到的现有扩展。

https://github.com/jupyterlab/jupyterlab-github

我的代码在这里

https://github.com/towicode/jupyterlab_irods

在大多数情况下,复制代码效果很好……除了一件事。我不知道如何替换默认的文件浏览器列表。在 github 扩展中,它列出了您的 github 存储库,就好像它们是本地文件/文件夹一样;这就是我的想法。

但是,在我的扩展中,我似乎无法替换默认列表,甚至根本无法执行我的 drive.get() 代码。相反,它只是列出了我的本地文件列表。

我没有找到太多关于 jupyterlab 扩展的文档,所以我有点笨。我已经查看了我的存储库和其他存储库中的代码之间的差异,我觉得我没有遗漏任何主要部分(尽管显然我是)。我希望有人可以向我简要解释如何完成替换 Jupyterlab 获取文件列表结果的位置的过程。

任何指导表示赞赏。

0 投票
1 回答
701 浏览

anaconda - 尝试使用 conda 更新 JupyterLab 时出错

我刚刚在一台新机器(Microsoft Windows 10 Enterprise,64 位)上安装了 Anaconda。当我尝试启动 JupyterLab 时,我看到需要更新包。但是,我总是收到以下错误:

如果我conda从提示中使用,也会发生同样的情况。

这里有什么问题?

0 投票
0 回答
2067 浏览

python - 尝试使用 pip 安装 JupyterLab 时出错

我刚刚在一台新机器(Microsoft Windows 10 Enterprise,64 位)上安装了 Anaconda。当我尝试使用 安装 JupyterLab 时pip,我总是收到以下错误:

我看到这ipykernel涉及到,但这里有什么问题?

0 投票
0 回答
300 浏览

jupyter - 如何在 Jupyter Lab 中为所有单元格的输出创建同步视图?

视频展示了如何在 Jupyter 笔记本中创建同步视图,但它与一个单元的输出相关联。除了任何单元格的输出,我怎么能做到这一点?理想情况下,类似于 RStudio 中的绘图查看器。

0 投票
1 回答
6971 浏览

conda - Jupyter 实验室无法启动

我今天更新了我的 conda 环境。以前,我可以从终端启动 jupyter lab。更新后(包括安装 theano,但我猜这无关紧要),我收到以下我不明白的错误:

有谁知道这里发生了什么?

0 投票
0 回答
533 浏览

nginx - 如何配置 NGINX 端口重定向?RStudio、Jupyter 和 JupyterLab

我在端口 8000 上运行 jupyter,在 8888 上运行 jupyter lab。 Nginx 配置看起来像(服务器侦听端口 80):

/朱莉娅工作正常

/jupyterlab 没有,但 server:8888 工作正常。

为什么?要改变什么?

在 8787 上,我有 RStudio,带有 nginx 配置:

也许我应该删除 Jupyter (/julia/) 并只留下 JupyterLab?

0 投票
1 回答
2681 浏览

python - jupyter 实验室导入模块

我在 linux 上使用 jupyter lab,我已经启动了它的各种工作目录,包括/,但是我在导入我用 pip 安装的模块时遇到问题。

这是我所做的:

pip install primer3-py

然后运行ipython

在 ipython 中运行import primer3按预期工作,其中primer3.calcTm('GTAAAACGACGGCCAGT')返回49.16808228911765

但是,如果我运行jupyter lab Open a console 并运行,import primer3我现在会收到导入错误:

我在这里做错了吗?