Change default kernel?

1,382 views
Skip to first unread message

Bill Smith

unread,
Apr 27, 2015, 9:57:47 PM4/27/15
to jup...@googlegroups.com
Hello,

I work with a group that uses R extensively.  Can R be made the default kernel in a notebook/set of notebooks/systemwide so that the magic syntax isn't required?

Thanks,
Bill

Brian Granger

unread,
Apr 27, 2015, 10:33:14 PM4/27/15
to jup...@googlegroups.com
Hi Bill,

With IPython/Jupyter version 3, there are now 37 different languages that are all supported with a native language kernel:


All of these kernels allow you to write code in that language with no magic syntax required. The R kernel is here:


If you install and configure the R packages on the IRkernel org, you will be set to go. I should note that we are currently working on improving the installation process - eventually all of this will just work with conda...

Cheers,

Brian



--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/8cefbc30-1e4e-464a-be44-052d1fe4e1a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Brian E. Granger
Cal Poly State University, San Luis Obispo
@ellisonbg on Twitter and GitHub
bgra...@calpoly.edu and elli...@gmail.com

Matthias Bussonnier

unread,
Apr 28, 2015, 12:31:26 PM4/28/15
to jup...@googlegroups.com
Just want to precise that when using the %%R magic you are not using a
R kernel. You are actually using RPy2 to send data back and forth
between python and R.
So by switching to a pure R kernel some things might work differently.
> https://groups.google.com/d/msgid/jupyter/CAH4pYpQiqW2hVHFNMF514jMcKPm1VR%2BuNUZwpZHnAYO2Cxx%3DEA%40mail.gmail.com.

Thomas Kluyver

unread,
Apr 28, 2015, 12:45:16 PM4/28/15
to jup...@googlegroups.com
A couple more points that I think are relevant:

- The identity of the kernel is saved in the notebook now. So a given notebook written in R should always get an R kernel started when you open it.
- There's not really a notion of a default kernel: for now, you choose which kernel to use each time you create a notebook. We toyed with ways of having a default kernel, but we didn't agree on UI.
- If you really want to, you can configure the list of available kernels for the 'New' button's dropdown menu, to exclude ones that you're not interested in. But we don't envisage this being important in most use cases.

Thanks,
Thomas

MinRK

unread,
Apr 28, 2015, 3:00:48 PM4/28/15
to jup...@googlegroups.com
The setting I believe you are looking for is:

c.MappingKernelManager.default_kernel_name = 'ir'


in ipython_notebook_config.py



On Mon, Apr 27, 2015 at 7:33 PM, Brian Granger <elli...@gmail.com> wrote:

Bill Smith

unread,
Apr 28, 2015, 5:16:05 PM4/28/15
to jup...@googlegroups.com
Thanks to everyone for the good information.

Reply all
Reply to author
Forward
0 new messages