vatlab / sos-notebook

Multi-language Jupyter Notebook
http://vatlab.github.io/SoS
BSD 3-Clause "New" or "Revised" License
177 stars 17 forks source link

R does not work #332

Closed ghost closed 3 years ago

ghost commented 3 years ago

Hi,

I installed SoS polyglot, but R does not work.

I used conda to install SoS locally

I get this error when I am trying to use R in Jupiter Notebook.

image

BoPeng commented 3 years ago

Please check

  1. If r works "normally" outside of SoS notebook.
  2. If Python kernel works inside of SoS notebook (after installing sos-python)
  3. if you have installed sos-r

If all answers are yes, please send me output of jupyter kernelspec list --json as a start.

ghost commented 3 years ago

Thanks. Indeed case 1 fails to run in Jupyter ( R works normally outside any python env, e.g. via my Rstudio). I will investigate, but happy if you have any thoughts.

BoPeng commented 3 years ago

There are many tutorials but you can check https://vatlab.github.io/sos-docs/running.html#r

ghost commented 3 years ago

Thank you that is great. For the record, I fixed the problem with iRkernel and Jupyter. The solution that worked for me I found it here: https://stackoverflow.com/questions/44056164/jupyter-client-has-to-be-installed-but-jupyter-kernelspec-version-exited-wit

I will give now a shot to see if SoS would run smoothly after this.