Newbie question: Cell magic does not work in Jupyter lab, what am I doing wrong?

39 views
Skip to first unread message

Arin Basu

unread,
Jan 2, 2018, 5:58:04 PM1/2/18
to Project Jupyter
Hi All,

I cannot seem to get bash working in Jupyter lab when I use an R console. For example, if I do:

```
%%bash
ls

It returns,

Error in parse(text = x, srcfile = src): <text>:1:1: unexpected SPECIAL
1: %%
```

Or if I do,

```
!ls
```
It returns
"
Error in !ls: invalid argument type"

I am using Jupyter Lab in Macbook Pro Osx 10.13.2 in Firefox Quantum beta update channel.
Jupyter lab version: 0.30

I have used the above commands in an R inferior process in the "code" block and tried to run them.

Would greatly appreciate any advice.

Best,
Arin Basu


Matthias Bussonnier

unread,
Jan 3, 2018, 5:21:44 AM1/3/18
to jup...@googlegroups.com
Hi Arin, 

Magics are an IPython feature, not a Jupyter feature. They work only with the Python kernel and other kernels that have decided to implement similar mechanisme. 
The R kernel does not have magics. 
-- 
Matthias

--
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+unsubscribe@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/4ff56060-7982-498c-86cb-eb2347908c5a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Arindam Bose

unread,
Jan 3, 2018, 5:39:10 AM1/3/18
to jup...@googlegroups.com
Thanks a million for this clarification!

You received this message because you are subscribed to a topic in the Google Groups "Project Jupyter" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jupyter/UkntseM5N-A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jupyter+u...@googlegroups.com.

To post to this group, send email to jup...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages