160 questions
7
votes
2
answers
2k
views
VS Code Jupyter extension fails to activate: "Typ"eError: this.vscNotebook.onDidChangeNotebookCellExecutionState is not a function
So recently I wanted to work with Jupyter notebooks in VS Code, but I ran into an activation error with the Jupyter extension.
I’m using:
VS Code version: 1.104.3
Jupyter extension version: 2025.8.0
...
0
votes
0
answers
81
views
Problem with installing R kernel for jupyter in VSCode
So I wanted to set up R kernel for Jupyter in VSCode, I installed Jupyter via pip, in the R console I typed:
install.packages('IRkernel')
and the package was successfully installed, then I tried to ...
5
votes
0
answers
177
views
Transparent R plot background in VS Code Jupyter Notebook - How to set default white background?
original issue on Github
Issue Description:
When generating R plots in VS Code's Jupyter Notebook (.ipynb files), the plot backgrounds appear transparent by default, making visualizations hard to ...
1
vote
0
answers
75
views
How to capture STDERR output in Jupyter Notebook with R kernel
Jupyter Notebook with R kernel (IRkernel) cannot show output to STDERR. For example, below are two cells in an .ipynb file:
cat("O kay!", file = stdout())
O kay! ## ...
0
votes
0
answers
29
views
Jupyter kernel for R + Spark
I am having an issue while trying to create new kernel for JupyterLab for R + Spark.
Without spark something like this works for me (kernel.json)
{
"display_name": "R",
&...
1
vote
0
answers
430
views
How to execute code Cells or notebooks from python code?
i am not a python devloper but i can fugre bits and peices out...
as a multi devloper im faced with code in all formats :: so i often forget a lot!! so i need help to be able to execute code on a ...
2
votes
0
answers
196
views
How to update to latest version of ggplot in Google colab with R kernel?
It appears that within the past week (I write this on 4/20/2024), the default ggplot2 package version pre-installed with the R kernel in Google colab is 3.3.5, a very old version. I have lots of code ...
0
votes
0
answers
37
views
R libraries not loading despite being specified in environment.yml file
In the environment file, made with conda, the dependencies specified are:
r-cowplot
jupyterlab
r-irkernel
nb_conda_kernels
When I open Jupyter with this environment, and with the kernel set in this ...
0
votes
2
answers
917
views
got error in a pandas function while using this function groupby().mean
import pandas as pd
# Assuming df is my DataFrame
data = {
'Make': ['Toyota', 'Honda', 'Toyota', 'BMW', 'Nissan', 'Toyota', 'Honda', 'Honda', 'Toyota', 'Nissan'],
'Colour': ['White', 'Red', '...
0
votes
1
answer
71
views
kernel-image-puller pod of JEG 3.2.2 getting connection refused 111 error
I am using jupyter enterprise gateway 3.2.2 using helm installation but while fetching kernel images getting below error.
kernel_image_puller.t2] Attempt 3 to pull image 'elyra/kernel-r:3.2.2' failed ...
1
vote
0
answers
108
views
Run R code selections in VSCode Jupyter Extension Interactive window
The VS Code Interactive Window now supports arbitrary Jupyter kernels (yay!), but I can't figure out how to send code to the Interactive Window from a non-Python plaintext file (e.g., an .R file) the ...
0
votes
0
answers
402
views
the jupyter notebook looks like old version and can't open previous codes as cell, opens them as scripts?
when i open jupyter notebook using anaconda prompt this the web page it is opening. Jupyter notebook on Web i have uninstalled and installed anaconda 2 to3 times but everytime same result.i have ...
0
votes
2
answers
3k
views
Can't open jupyter notebook at all
Last weeks everything was ok. But all of a sudden I can't run jupyter notebook (if i run it from the start menu it wont open / if i run it from anaconda navigator or dataspell it wont run and give me ...
0
votes
1
answer
590
views
Error %%writefile not found when try to modified txt file [closed]
I got this error message:
UsageError: Line magic function %%writefile not found.
Please check my code and service log from jupyter notebook. Please help me.\
Version : Python 3.11.3
Environemt : Code-...
0
votes
1
answer
176
views
Python 3 ipykernel hangs on a particular line of code
I tried training a Linear regression model using model.fit on jupyter notebook as usual but my kernel is not executing the particular line of code and no error message.
import numpy as np
import ...
1
vote
0
answers
186
views
How can I prevent Jupyter Notebooks in VS Code from rendering output multiple times when executing R programs?
Output generated by executing a R Jupyter Notebook Cell is rendered multiple times.
I followed the instructions in this article to set up Jupyter Notebooks in VS Code for executing R programs. However,...
1
vote
1
answer
609
views
Rstudio defaulting to the Python kernel
I am having an issue with my Quarto website project. I always use the R kernel in rstudio on both of my computers, but when I reopened my project on my other computer, it seems to be defaulting to the ...
0
votes
1
answer
795
views
Jupyter stop working. Bag report: Bad file descriptor
I try to use local jupyter notebook
To start i use cmd (win 10, 64 bit), it give me URLs, then i try to create NEW notebook.
But i see that Kernel have long beasy (do not stop) and after that i get ...
0
votes
0
answers
127
views
How do I avoid overwriting plot on top of each other while running the plot inside for loop in R (jupyter notebook)?
I am running a code which will print multiple plots while in a for loop in a jupyter notebook.But I am getting a behavior as shown above. How do I avoid this and not print each plot top of each other ...
1
vote
0
answers
79
views
R kernel after installation was freezing and did not respond
I have installed IRkernel for Jupyter Lab. This is the line of code, which I used for this aim:
install.packages(c('repr', 'IRdisplay', 'evaluate', 'crayon', 'pbdZMQ', 'devtools', 'uuid', 'digest'))
...
0
votes
0
answers
769
views
Can't install packages in Jupyter Lab R kernel
I have tried to install basic packages in R using the R Jupyter lab kernel, but got this error message:
install.packages("devtools", repos='http://cran.us.r-project.org')
also installing the ...
2
votes
0
answers
168
views
Increase height, width of docstring in Jupyter notebook
When pressing Shift-Tab in Jupyter notebook, it pops-up docstring (help for the function). How can I change the docstring height/width to minimize scrolling? Currently, the pop-up window is so small ...
1
vote
0
answers
176
views
Error when executing R kernel in Jupyter with nbclient package (Error in parse(text = x, srcfile = src): <text>:1:1: unexpected input)
Using the nbclient package to remotely execute an R kernel, the package works fine with the python kernels (3.7/3.9) however gives this error when attempting the run an R kernel.
The following is the ...
2
votes
1
answer
92
views
The limit could be changed via "languageserver.link_file_size_limit" option
When I try to read in a csv file using
df<-read.csv("Regression_train.csv")
File size (17.6 Mb) exceeds the limit (16 Mb).
The limit could be changed via "languageserver....
-2
votes
2
answers
4k
views
ModuleNotFoundError: No module named 'seaborn'. online jupyter notebook
Can anyone help me with this issue. I'm tying to do an algorithm in online Jupyterlite. But it's giving the above error.
ModuleNotFoundError Traceback (most recent call last)
...
0
votes
0
answers
356
views
I'm getting an error in Jupyter Notebook using R
I'm using R on Jupyter Notebook to complete a Cousera Assignment (Analysis of Global COVID-19 Pandemic Data). Despite following a detailed tutorial, I still get error messages that my variables are ...
5
votes
0
answers
579
views
Failed to initialize anaconda directories Windows 11
I installed anaconda the latest version of anaconda, anaconda3-2022.05 and i got the error failed to initialize anaconda directories and it is pointing towards anaconda3\lib_nsis.py and i don't know ...
0
votes
1
answer
235
views
matplotlib is returning empty plot
Click Here for the image
trying to plot an animated line chart in python. Why is this code returning to a blank white plot ? a guidance would be appreciated. And also if there is a better way to draw ...
1
vote
0
answers
55
views
Jupyterlab R kernel export pdf dataframe goes out of bounds because of dimensions text
As shown in the screenshot because of the "dimensions text" ("A data.frame: 9 x 7") the data frame cannot be centered and thus goes out of bounds horizontally. How can I disable ...
1
vote
0
answers
140
views
Centering plots in Jupyter-Lab using R kernel
I'm using Jupyter-lab with R kernel and I would like to know how to center the plots I make. Here is how it looks by default :
I would like to make it like this :
0
votes
0
answers
158
views
Jupyterhub | Cull | SingleUser | Heml
I have implemented Jupyterhub using Helm chart. I want to remove the user if the user is inactive for specific time. I have implemented that with cull but the problem is that it removes admin user as ...
1
vote
1
answer
968
views
Force R to show plot before input in Colab
I'd like to display a plot and then have the user give some input, but the plot always appears after the input line. A simple example is:
plot( 1:10 )
ans <- readline("What is your favorite ...
4
votes
0
answers
1k
views
How do I make Poetry-based Jupyter use IRkernel installed using renv?
I have the following project layout:
. my-project
|- pyproject.toml
|- poetry.lock
|- .jupyter
| '- jupyter_notebook_config.py
|- kernels
| '- R-renv
| '- kernel.json
|- .renv
|- renv.lock
|- ....
0
votes
2
answers
4k
views
How to add seaborn library in jupyter lite static build
I have created the static build of jupyter lite while running seaborn library example code in jupyter lite tool i am getting this error : seaborn module not found.
0
votes
0
answers
453
views
'Upload' function not working for Jupyter Notebook in ssh mode on a Ubuntu 18.04 machine
I am new to using Jupyter, but am well versed with R. My new role requires me to use R-Kernel inside a jupyter notebook via ssh to share common data and save space. However, I am unable to upload any ...
0
votes
1
answer
2k
views
How to switch to R kernel from Python kernel in Jupyter?
I converted an R markdown file(no Python code in it) into an .ipynb file referring to this answer:
use jupytext --to notebook script.Rmd to create script.ipynb
But when I open the script.ipynb in ...
1
vote
1
answer
6k
views
Jupyter notebook does not connect to kernel ever
Win 10 x64 Python 3.8 Anaconda
I created a conda virtual environment, activated the environment & installed ipykernel and Jupyter with pip install jupyter ipykernel
No issues, installed fine. ...
0
votes
0
answers
247
views
Jupyter R-Notebook Docker Images don't seem to include an R kernal
Maybe I'm doing something wrong, or my expectation is incorrect.
I've tried using multiple tagged version of the Jupyter/r-notebook images on dockerhub. None seem to include an R kernel for Jupyter. ...
0
votes
1
answer
381
views
How can i fix this kernel error in jupyter notebook
Traceback (most recent call last):
File "/data/user/0/ru.iiec.pydroid3/files/arm-linux-androideabi/lib/python3.8/site-packages/tornado/web.py", line 1704, in _execute
result = await ...
0
votes
1
answer
3k
views
How to install Jupyter Lab/Notebook on Windows 10?
I have been using R/Python and Jupyter Lab/Notebook on Macbook. In my new job, I need to install and run these applications on Windows 10.
I have Python, pip, Jupyter, R4.1 & RStudio installed ...
0
votes
0
answers
238
views
Install R in Jupyterhub
I plan on use R inside Python using the rpy2 package in Jupyterhub.
I'm using conda 4.9.2
$ conda install -c r r-essentials
Collecting package metadata (current_repodata.json): done
Solving ...
4
votes
1
answer
3k
views
fatal error installing systemfonts in jupyter R docker
I am running jupyterlabs on docker and wanted to install the rvg package. One of the dependencies are systemfonts, and when I tried to install this using install.packages("systemfonts") I ...
0
votes
1
answer
2k
views
ipywidgets dropdown widgets: How to populate nested widgets based on selected dropdown option on onchange event?
I am trying to build a widget that parses data from json and populates the tools, base form could contain simple input fields and a drop-down menu option. I want to add nested widgets based on the ...
5
votes
0
answers
2k
views
In Jupyter with R, display by default all rows and columns of a dataframe
I'm looking for a way to display all the rows and all the columns BY DEFAULT in Jupyter, without the ..., in specific in Jupyter Lab but possibly is something done the same way in Jupyter Notebook.
I ...
0
votes
2
answers
4k
views
Unable to install tidyverse package for r kernel in jupyter
I have recently installed Anaconda and also enabled r kernel by using conda install -c r r-irkernel which i took reference from: https://kyleake.medium.com/how-to-install-r-in-jupyter-with-irkernel-in-...
1
vote
1
answer
860
views
How to display interactive leaflet map in R notebook in colab
I am unable to plot an interactive map in
colab
A workaround (static image) is in the second cell.
I expect an answer in r-leaflet.
Related blog
1
vote
1
answer
2k
views
Pretty print of R Jupyter Notebook inside a function
When calling head(...) in a cell in jupyter notebook, we get a nice table with the data
However if I want to do the same in a function, nothing is shown, so I have to use print(head(...)) but the ...
1
vote
0
answers
279
views
How I make my Jupyter notebook script locked?
I have multiple scripts using the IRkernel on Jupyter notebook. I have to put them on a server, but I only want that people can run it, not editable or deletable.
I have already tried things, mainly ...
2
votes
0
answers
235
views
R kernel in JupyterLab does not display axis properly
Does anyone know how to fix so the axis are displayed properly in JupyterLab using R kernel? So far I have got this outcome:
Many thanks
3
votes
1
answer
1k
views
Is there an equivalent to magic `%run` with R kernel in Jupyter?
This question is somewhat related to Is there a way to do Jupyter cell magic with R.
When you use JupyterLab with a Python kernel, you can split your analysis into several notebooks, like this:
.
├── ...