jupyter-lab

Display vega spec in Jupyter Lab

别说谁变了你拦得住时间么 提交于 2021-02-11 12:50:28
问题 How can I display a vega spec (such as this force directed layout) in Jupyter Lab/JupyterLab? 回答1: You can use Vega Embed through the javascript extension: Add the scripts: %%javascript var script = document.createElement('script'); script.type = 'text/javascript'; script.src = '//cdn.jsdelivr.net/npm/vega@5'; document.head.appendChild(script); var script = document.createElement('script'); script.type = 'text/javascript'; script.src = '//cdn.jsdelivr.net/npm/vega-embed@6'; document.head

Failed to load jupyterlab-git server extension

三世轮回 提交于 2021-02-11 12:32:23
问题 I am trying to install git extension in jupyterlab but I get error as below. All server extensions are enabled but it doesn't load. (base) [root@user01 opt]# jupyter serverextension list config dir: /opt/anaconda3/etc/jupyter jupyterlab enabled - Validating... jupyterlab 2.2.6 OK jupyterlab_git enabled - Validating... jupyterlab_git 0.23.3 OK nbdime enabled - Validating... nbdime 2.1.0 OK As suggested in another page I have installed jupyter_nbextensions_configurator but still that didn't

How to wrap code in cells on JupyterLab Version 1.1.4

☆樱花仙子☆ 提交于 2021-02-11 02:47:35
问题 I am simply trying to get Jupyterlab Version 1.1.4 to wrap code in cells. I use the AdvancedSettingsEditor to implement the solution found here: Enable word wrap in JupyterLab code editor However I get an error that codeCellConfig is not a valid property and the AdvancedSettingsEditor will therefore not permit me to save the updated config file. If I could see the list of valid properties (perhaps dependent on JupyterLab version), I'd be able to do some trial and error. However I have not

How to wrap code in cells on JupyterLab Version 1.1.4

落爺英雄遲暮 提交于 2021-02-11 02:47:13
问题 I am simply trying to get Jupyterlab Version 1.1.4 to wrap code in cells. I use the AdvancedSettingsEditor to implement the solution found here: Enable word wrap in JupyterLab code editor However I get an error that codeCellConfig is not a valid property and the AdvancedSettingsEditor will therefore not permit me to save the updated config file. If I could see the list of valid properties (perhaps dependent on JupyterLab version), I'd be able to do some trial and error. However I have not

Using R with Jupyter notebook installation

╄→尐↘猪︶ㄣ 提交于 2021-02-10 22:40:12
问题 I have installed R from the official site and want to use it from jupyter notebook and jupyterlab. For that i have installed IRkernal in R using: install.packages('IRkernel') and then when I type IRkernel::installspec(user = FALSE) to make this installation visible globally, I get following error: Error in IRkernel::installspec(user = FALSE) : jupyter-client has to be installed but “jupyter kernelspec --version” exited with code 127. In addition: Warning message: In system2("jupyter", c(

JupyterLab - add a subset of commands to sidebar tab

杀马特。学长 韩版系。学妹 提交于 2021-02-10 06:36:20
问题 I have some experience with Jupyter Notebook tweaking, but not with JupyterLab. Basically, I want to add a subset of commands to a side tab. Let's say I've registered the command "sample" under the heading "DTLA" function addCommands(app: JupyterLab, tracker: ICommandPalette): void { const category = 'DTLA'; let command = CommandIDs.sample; app.commands.addCommand(command, { label: 'sample', execute: () => { console.log('hellow!'); } }); tracker.addItem({ command, category }) } /** * The

How can I use Asynchronous Widgets on jupyter lab?

冷暖自知 提交于 2021-02-07 13:12:47
问题 How can I use Asynchronous Widgets on jupyter lab ? I'm trying to reproduce the official Asynchronous Widgets-Example on jupyter lab , but the await never continues. Setup / reproduction docker run --rm -p 8888:8888 -e JUPYTER_ENABLE_LAB=yes jupyter/datascience-notebook start-notebook.sh --NotebookApp.token='' firefox 0.0.0.0:8888 create a new python3 notebook create a cell and enter the code below run cell move slider code for the cell %gui asyncio import asyncio def wait_for_change(widget,

How can I use Asynchronous Widgets on jupyter lab?

百般思念 提交于 2021-02-07 13:10:37
问题 How can I use Asynchronous Widgets on jupyter lab ? I'm trying to reproduce the official Asynchronous Widgets-Example on jupyter lab , but the await never continues. Setup / reproduction docker run --rm -p 8888:8888 -e JUPYTER_ENABLE_LAB=yes jupyter/datascience-notebook start-notebook.sh --NotebookApp.token='' firefox 0.0.0.0:8888 create a new python3 notebook create a cell and enter the code below run cell move slider code for the cell %gui asyncio import asyncio def wait_for_change(widget,

How to upgrade Google Cloud AI Platform Jupyter Lab to Python 3.7+

[亡魂溺海] 提交于 2021-02-07 04:22:11
问题 Google Cloud Platform's AI Platform has convenient deployment of Jupyter Lab, but only for Python 2 and Python 3.5.3. How can I upgrade my instance to be able to run Python 3.7 (or higher) notebooks? 回答1: This solution is built off of the answers in How do I install Python 3.7 in google cloud shell. How to get python 3.7 working on Google Cloud Platform's AI Platform Notebook Instances, which comes with built-in support for JupyterLab, but is only updated to python 3.5.3: Create or use an

Problems with Jupyter python kernel

徘徊边缘 提交于 2021-01-29 16:20:20
问题 I have been looking to use Jupyter for some upcoming projects and decided to go ahead and set it up. When I select the "Python" under kernels when creating a new notebook, the following error occurs. Traceback (most recent call last): File "C:\Users\thoma\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\tornado\web.py", line 1699, in _execute result = await result File "C:\Users\thoma\AppData\Local\Packages