Giter VIP home page Giter VIP logo

Comments (9)

willwhitney avatar willwhitney commented on July 2, 2024

I think this is happening because either 1. Atom doesn't know what language the file you're editing is in, or 2. the kernels you're using don't declare their language.

Does the language show up in the status bar of Atom, like this?

atom status bar

If it does, would you mind updating to the version I just released, then popping open the dev tools and telling me what it says next to "Available kernels" when you try to run something?

from hydrogen.

sglyon avatar sglyon commented on July 2, 2024

Yep, I see the same thing in the status bar.

I opened up the dev tools, but don't know how to ask it for "Available Kernels"...

from hydrogen.

sglyon avatar sglyon commented on July 2, 2024

Found it:

Available kernels: Array[6]0: 
Objectargv: Array[5]display_name: "R"__proto__: Object1: 
Objectargv: Array[5]display_name: "Julia 0.3.6"language: "julia"__proto__: Object2: 
Objectargv: Array[5]display_name: "Julia 0.3.6"language: "julia"__proto__: Object3: 
Objectargv: Array[5]display_name: "Julia 0.3.8"language: "julia"__proto__: Object4: 
Objectargv: Array[5]display_name: "Julia 0.4.0-dev"language: "julia"__proto__: Object5: 
Objectargv: Array[5]display_name: "Python 3"language: "python"__proto__: Objectlength: 6__proto__: Array[0]

from hydrogen.

willwhitney avatar willwhitney commented on July 2, 2024

@spencerlyon2 I think the issue is that the R kernel isn't giving me a language field. Just pushed a patch — please update and give it a shot, and let me know if it's still broken!

from hydrogen.

sglyon avatar sglyon commented on July 2, 2024

That worked! Thanks

from hydrogen.

sglyon avatar sglyon commented on July 2, 2024

... well that works for julia and python, but not R.

When I try to run code in an R file it tells me that there is no kernel for r.

Here are the contents of ~/.ipython/kernels/ir/kernel.json:

{"argv": ["R","-e","IRkernel::main()","--args","{connection_file}"],
 "display_name":"R"
}

from hydrogen.

willwhitney avatar willwhitney commented on July 2, 2024

Whoops, forgot to make the other two lines of that change. Update and try it again?

I'm now using the display_name if the kernelspec doesn't declare a language.

from hydrogen.

rgbkrk avatar rgbkrk commented on July 2, 2024

@takluyver should IRkernel be declaring a language or is that an optional field?

from hydrogen.

takluyver avatar takluyver commented on July 2, 2024

Yes, I think we should be declaring a language. The spec changed a couple of times while we were developing IPython 3, and I guess I missed that one.

from hydrogen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.