jupyter-lab

Plotting R in Jupyter lab with dark theme is barely visible

試著忘記壹切 提交于 2019-12-02 08:16:53
问题 I am trying to plot using R kernel in Jupyter lab, and I set my Jupyter lab theme as "Jupyterlab dark." Below is my code: options(repr.plot.width=20, repr.plot.height=5) plot(x) points(x2,pch=1,col="blue") This is what I get Is there a way to make it look more like the plot below? (I switched jupyter lab theme to light, and now the plot is visible) 来源: https://stackoverflow.com/questions/49929766/plotting-r-in-jupyter-lab-with-dark-theme-is-barely-visible

Plotting R in Jupyter lab with dark theme is barely visible

旧时模样 提交于 2019-12-02 07:53:19
I am trying to plot using R kernel in Jupyter lab, and I set my Jupyter lab theme as "Jupyterlab dark." Below is my code: options(repr.plot.width=20, repr.plot.height=5) plot(x) points(x2,pch=1,col="blue") This is what I get Is there a way to make it look more like the plot below? (I switched jupyter lab theme to light, and now the plot is visible) 来源: https://stackoverflow.com/questions/49929766/plotting-r-in-jupyter-lab-with-dark-theme-is-barely-visible

plotly.offline.iplot gives a large blank field as its output in Jupyter Notebook/Lab

时间秒杀一切 提交于 2019-11-30 22:10:38
问题 I am trying to create a Sankey chart in a Jupyter notebook, basing my code on the first example shown here. I ended up with this, which I can run without getting any errors: import numpy as npy import pandas as pd import plotly as ply ply.offline.init_notebook_mode(connected=True) df = pd.read_csv('C:\\Users\\a245401\\Desktop\\Test.csv',sep=';') print(df.head()) print(ply.__version__) data_trace = dict( type='sankey', domain = dict( x = [0,1], y = [0,1] ), orientation = "h", valueformat = "

How to edit jupyter lab theme

陌路散爱 提交于 2019-11-30 16:58:40
问题 As described in a previous question, it is now possible to edit the Jupyter Lab theme. However, this theme has a few issues for me personally. For example, it makes plot axes hard to read, since their default color is black. Other users have had similar problems. Consequently, I would like to fork the existing theme and make plot display cells a light grey colour. How does one do this? I tried to find the corresponding .css file, but all I could find was /usr/local/share/jupyter/lab/themes/

How to get ipywidgets working in Jupyter Lab?

笑着哭i 提交于 2019-11-29 21:22:07
In Jupyter Notebook, ipywidgets work fine, however they seem to not work in Jupyter Lab (which is supposedly better than Notebook). I followed these directions . Step 1: Installed Node.js ( https://nodejs.org/en/ ) Step 2: Installed requirements on Python 3 with conda: conda install -c conda-forge ipywidgets jupyter labextension install @jupyter-widgets/jupyterlab-manager Unfortunately, basic widgets do not work inside the jupyter lab notebook: JupyterLab now prefers a model where arbitrary javascript is no longer allowed to be embedded in a cell's output, which is how many interactive Jupyter

How to apply theme to jupyter lab

醉酒当歌 提交于 2019-11-29 16:36:59
问题 I tried to apply dark theme by putting a *.css file in the ~/.jupyter/custom/ directory (like here). This changes a theme for a normal jupyter notebook. But no affect on the jupyter lab appearance. I also tried to install a theme using jupyter-theme, but alas, no changes in jupyter lab appearance. Can someone point me to the how-to guide? 回答1: UPDATE 02/03/2018 Now this option is already built in in the settings menu! Recently this issue was closed on the GitHub, and finally it is possible to

Javascript Error: IPython is not defined in JupyterLab

*爱你&永不变心* 提交于 2019-11-29 02:13:28
问题 I have the latest/updated Anaconda package. Everytime I try to plot something using python 3.6.6 I get the following error in JupyterLab... Javascript Error: IPython is not defined When I run the same code in Spyder using an ipython kernel, it works just fine. Have been looking all over online but cant seem to figure out what is going on. Any help would be appreciated. 回答1: "%matplotlib notebook doesn't work in nteract, you'll need to use %matplotlib inline for now." Add: %matplotlib inline

How to add conda environment to jupyter lab

浪子不回头ぞ 提交于 2019-11-27 19:28:36
i'm using jupyter lab, and i'm having trouble to add conda environment. The idea is to launch jupyter lab from my base environnment, and then to be able to choose my other conda envs as kernels. I installed the package nb_conda_kernels which is supposed to do just that, but it's not working as I want. Indeed, let's assume I create a new conda environment, then i launch jupyter lab from base, I can't see the new environment as an available kernel. I have found a "fix", which works everytime but is not convenient at all. If I install jupyter notebook in my new environment, then launch a jupyter

jupyterlab interactive plot

江枫思渺然 提交于 2019-11-27 00:44:50
问题 I'm getting into using Jupyterlab from Jupyter notebooks. In notebooks I used to use: import matplotlib.pyplot as plt %matplotlib notebook plt.figure() x = [1,2,3] y = [4,5,6] plt.plot(x,y) for interactive plots. Which now gives me (in jupyterlab): JavaScript output is disabled in JupyterLab I have also tried the magic (with jupyter-matplotlib installed): %matplotlib ipympl But that just returns: FigureCanvasNbAgg() Inline plots: %matplotlib inline work just fine, but I want interactive plots

How to add conda environment to jupyter lab

徘徊边缘 提交于 2019-11-26 09:26:13
问题 i\'m using jupyter lab, and i\'m having trouble to add conda environment. The idea is to launch jupyter lab from my base environnment, and then to be able to choose my other conda envs as kernels. I installed the package nb_conda_kernels which is supposed to do just that, but it\'s not working as I want. Indeed, let\'s assume I create a new conda environment, then i launch jupyter lab from base, I can\'t see the new environment as an available kernel. I have found a \"fix\", which works