Git Product home page Git Product logo

Comments (9)

willwhitney avatar willwhitney commented on May 18, 2024

Which of these directories contains the kernelspecs? ~/.jupyter?

from hydrogen.

rgbkrk avatar rgbkrk commented on May 18, 2024

Multiples. It's the aggregation of all of them...

In [1]: import jupyter_core.paths

In [2]: jupyter_core.paths.jupyter_path("kernels")
Out[2]:
['/Users/rgbkrk/Library/Jupyter/kernels',
 '/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/share/jupyter/kernels',
 '/usr/local/share/jupyter/kernels',
 '/usr/share/jupyter/kernels']

This is where I was bantering around with creating a simple wrapper script that would dump JSON to stdout with options we'd need from an alternate front end (like Hydrogen). The other alternative is to use what we've got and launch a python kernel just for Hydrogen that queries for this same information.

It's either that or always searching particular paths.

from hydrogen.

willwhitney avatar willwhitney commented on May 18, 2024

Gosh, that's ugly. I'd sure love a script that dumps JSON of all the kernels' info.

from hydrogen.

willwhitney avatar willwhitney commented on May 18, 2024

Especially if that script worked across IPython and Jupyter.

from hydrogen.

rgbkrk avatar rgbkrk commented on May 18, 2024

As the migration happens, IPython will just be one of the kernels for Jupyter. It's all the same team.

When I get some free time after work, I'll start poking at what scripts could be useful for Hydrogen and Jupyter sidecar to call out to Jupyter for accurate information.

from hydrogen.

willwhitney avatar willwhitney commented on May 18, 2024

What I mean is that I'd like this to still work for people who haven't
updated to a post-Split version. I find most people don't update until
something completely stops working.

Thanks!

On Tue, May 19, 2015 at 4:51 PM Kyle Kelley [email protected]
wrote:

As the migration happens, IPython will just be one of the kernels for
Jupyter. It's all the same team.

When I get some free time after work, I'll start poking at what scripts
could be useful for Hydrogen and Jupyter sidecar to call out to Jupyter for
accurate information.


Reply to this email directly or view it on GitHub
#7 (comment).

from hydrogen.

rgbkrk avatar rgbkrk commented on May 18, 2024

Totally, I'll end up making a script that straddles both.

Also, people are strange and install from master whether or not they're contributing to IPython/Jupyter. For this release it's a bit silly since it's mostly repackaging, but in previous versions it was a big delta.

from hydrogen.

willwhitney avatar willwhitney commented on May 18, 2024

Awesome!

For the moment I'm loading all kernels found in that list plus ~/.ipython/kernels and ~/.jupyter/kernels. Not a good answer, but it ought to tide us over for now. That's in the latest release.

from hydrogen.

rgbkrk avatar rgbkrk commented on May 18, 2024

Done in #19.

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.