Code Self Study Forum

Using R in Jupyter Lab

I wanted to use R in Jupyter Lab running in a venv (without using Anaconda), and it took a while to find instructions.

Here’s a link for anyone else who might need it:

https://irkernel.github.io/installation/

After it’s installed, go to “Kernel” → “Change Kernel”, and R will be an option there.

A list of other available kernels is here (including languages like JavaScript and bf):

1 Like

Are you learning R and/or studying stats? I need to do that too.

I’m trying to learn how to analyze some data and create visualizations. The first Udemy course I started uses Excel and I didn’t want to spend learning how to use spreadsheets*, so I tried to follow the course in Python. I got a bit frustrated by the way some matplotlib charts are created, so I decided to try it in R. (It might not be matplotlib — I just don’t know what I’m doing. :slight_smile: )

*I got into programming with VBA in Excel, but it has been a long time and I don’t remember much. Spreadsheets are error prone, so I figured if I’m going to learn something new, it should be something that I’ll actually use afterwards.

Oh, I see. Yeah, I would have done the same as you. I use Matplotlib pretty often, but unless I’m doing a very simple plot, I always have to look up an example and try to copy that. It kind of reminds me of plain TeX in that it can do just about anything you can think of but it’s not exactly user friendly if you want to do something beyond the basics.

I think there have been many attempts to come up with easier ways to visualize data in the Python world (as noted in this talk: https://youtu.be/FytuB8nFHPQ )

I’m even more ignorant about plotting with R. I’ve done some stuff before but not much. I’d really like to learn R better.

So, if you come across any good resources in any of this stuff, I’d be glad to hear about them. :slight_smile:

1 Like

Thanks, I just clicked around in that video and saw Bokeh, so I might try that.

I took a Coursera course on R a few years ago, but I don’t remember much. I’ve just been typing queries into Google so far. The docs are good, and there are code examples on this site:

Edit: also a collection of cheatsheets:

1 Like

I don’t like the Udemy course that I was watching (Excel-based and not organized well), so I started reading this book again last night.

I’m also checking out datacamp.com this afternoon, which looks interesting.

Oh, I have that book too. I started it, but haven’t finished it. Actually finishing reading it at least (not sure I will do (m)any exercises) is one of my 2021 resolutions. :slight_smile:

1 Like

I’d like to finish it too. I ended up subscribing to DataCamp for a month and am going through some of their R resources.

1 Like

Let us know how it goes!