nteract / hydrogen

:atom: Run code interactively, inspect data, and plot. All the power of Jupyter kernels, inside your favorite text editor.
https://nteract.gitbooks.io/hydrogen/
MIT License
3.92k stars 334 forks source link

Can't get IRKernel to work #1742

Open tlcaputi opened 5 years ago

tlcaputi commented 5 years ago

Prerequisites

Description

I can't get Hydrogen to run any R code within Atom. The code is there, I hit Shift+Enter, and it just advances to the next line without running anything. Occasionally (but not always), it will give this error:

[IPKernelApp] ERROR | Invalid Message Traceback (most recent call last): 
File "C:\Users\tcapu\Anaconda3\lib\site-packages\ipykernel\kernelbase.py", line 234, in dispatch_shell msg = self.session.deserialize(msg, content=True, copy=False) 
File "C:\Users\tcapu\Anaconda3\lib\site-packages\jupyter_client\session.py", line 923, in deserialize raise ValueError("Invalid Signature: %r" % signature) 
ValueError: 
Invalid Signature: b'2544794458c882815449de78afb2b3b48930a5d51683dba538f268232250374b'

Steps to Reproduce

  1. Install Anaconda3.7, Atom 1.39.1, and Hydrogen
  2. Run IRkernel::installspec() in R
  3. Attempt to run any R code in Atom

Versions

OS version: Windows 10

atom --version

Atom    : 1.40.0
Electron: 3.1.10
Chrome  : 66.0.3359.181
Node    : 10.2.0

apm --version


apm  2.4.2
npm  6.2.0
node 10.2.1 x64
atom 1.40.0
python 3.6.8
git 2.22.0.windows.1
visual studio

Hydrogen version:
<!-- You can check this information in the settings view or via running `apm show hydrogen` -->

Hydrogen ├── 2.10.3 ├── https://github.com/nteract/hydrogen ├── Run code interactively, inspect data, and plot. All the power of Jupyter kernels, inside your favorite text editor. ├── 1195831 downloads └── 654 stars



### Plugins

Have you installed and activated any of the Hydrogen plugins below ?
- [ ] hydrogen-python
- [ ] Hydrogen Launcher
- [ ] Data Explorer

### Logs

### Expected behavior

Run R code

### Screenshots

![image](https://user-images.githubusercontent.com/29004856/63107596-3beba300-bf53-11e9-8022-16cf23194854.png)

[If applicable, add screenshots to help explain your problem.]

### Additional context

[Add any other context about the problem here.]
wadethestealth commented 5 years ago

From the nteract.io docs to install IRKernel:

install.packages(c('repr', 'IRdisplay', 'evaluate', 'crayon', 'pbdZMQ', 'devtools', 'uuid', 'digest'))
devtools::install_github('IRkernel/IRkernel')
IRkernel::installspec()

You may potentially be able to use steps from https://irkernel.github.io/installation, but we can't guarantee that.

wadethestealth commented 5 years ago

After further review, this could be an issue unrelated to your installation, but I am unsure of a root cause.

cc: @BenRussert @aviatesk

wadethestealth commented 4 years ago

I saw this issue report recently with #1237, but am unsure how your workflow relates to the same issue still

Ujustwaite commented 4 years ago

Same issue. Clean install and have similar symptoms. R kernel is detected by hydrogen on launch of atom and listed in popup dialog, but no code execution occurs. I don't get the error that the user does which appears to be related to the Python kernel and not R, but just don't get any execution.

Have language-r grammar installed.

jupyter kernelspec list

shows the ir kernel as present and available, reinforcing that atom is able to detect.