If you enjoy coding both in R and Python or like to explore/experiment with packages from both ecosystems, and love the interactive experience of Jupyter Notebook then follow these steps.
foo@bar:~$ git clone https://github.com/lkscodediary/RND.git
foo@bar:~$ cd RND
foo@bar:~/RND$
foo@bar:~/RND$ python3 -m venv venv
foo@bar:~/RND$ source venv/bin/activate
(venv) foo@bar:~/RND$ pip install --upgrade pip
(venv) foo@bar:~/RND$ pip install -r resources/requirements.txt
(venv) foo@bar:~/RND$ jupyter notebook --generate-config #This is generate a .jupyter in your home directory
(venv) foo@bar:~/RND$ jupyter notebook password #This is optional
foo@bar:~/RND$ R --no-save
#Install IRkernel
install.packages("IRkernel", INSTALL_opts = "--no-multiarch")
#Configure IRkernel. This is how we connect R kernel to Jupyter Notebook.
#More at https://github.com/IRkernel/IRkernel
#My version of R at the time of writing this is 4.4.2
IRkernel::installspec(name = "ir44", displayname = 'R 4.4')
#Quit R from console or RGui
q()
foo@bar:~/RND$ jupyter notebook