Is there any way to find out which core the jupyter block was built from?

I have several cores installed in Jupyter. without running Jupyter fully in the browser, I would like to know which version of Python or Julia or R was used to create the laptop. is there any way to request ipynb file using command line?

How to find out what works in a Jupyter laptop? discusses how to change kernels. I would just like to interrogate a laptop.

+4
source share
1 answer

As @Georgy said, you can use jq, i.e .:

ismael-vc@toybox ~/Downloads % cat Untitled.ipynb | jq '.metadata.kernelspec'
{
  "display_name": "Julia 0.6.0",
  "language": "julia",
  "name": "julia-0.6"
}
+6
source

Source: https://habr.com/ru/post/1690879/


All Articles