Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use for other languages than python #3

Closed
amn41 opened this issue Mar 27, 2019 · 0 comments · Fixed by #4
Closed

use for other languages than python #3

amn41 opened this issue Mar 27, 2019 · 0 comments · Fixed by #4

Comments

@amn41
Copy link
Contributor

amn41 commented Mar 27, 2019

thanks for the awesome library! I'm now trying to use it for a kernel in another language.

from the options I thought the parameter would be defaultLang, but from looking at the code it seems like I should pass language in the options instead:

e.g. in console

j = new Juniper({ repo: 'amn41/bash_plus_kernel/', branch: 'master', kernelType: 'bash', language: 'shell'})
j.defaultLang
"shell"

if I run this shell on binder, I am able to execute bash commands. However, when I try to do so via juniper, I get:

  File "<ipython-input-1-8619f869794b>", line 1
    python hello.py &
               ^
SyntaxError: invalid syntax

so it still seems to be creating a python kernel. I did some digging into the jupyter/services code but couldn't find any hints there.

One other hint is that if I visit the url that juniper logs to the console
Starting WebSocket: wss://hub.mybinder.org/user/amn41-bash_plus_...
I see a JSON which contains name: python3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant