Hacker News new | ask | show | jobs
by edwintorok 4123 days ago
Wasn't there a way to run the IPython notebook with a javascript kernel in the browser? At least that is how iocaml notebooks work (which AFAICT are IPython compatible): you have the full OCaml interpreter running as javascript and can edit any cells: http://gazagnaire.org/fuconf14/

This seems to be the Python equivalent: https://github.com/minrk/jskernel

1 comments

Jupyter supports all kinds of kernels now. R, Julia, Javascript, Python, Haskell, Ruby, bash, it goes on and on. I am just giddy in love with the Jupyter project, despite the pain points about the current pace of changes.

http://jupyter.org/

Maybe you could set up a python virtualenv and use 'pip freeze' to dump the exact versions of all the libs you use. Then someone who wants to edit/render the notebook can 'pip install -r requirements.txt' to get an environment close to yours.

This still doesn't solve the problem that .ipynb format may not be stable, or that various python libs can introduce incompatibilities between versions but at least upgrading would be entirely under your control, and done at your pace.

Perhaps markdown with embedded code sections, or org-mode+org-babel would be a better long-term storage format, but I don't know if there are any tools that can round-trip to IPython notebooks, and you'd loose some of the interactivity.

I had no knowledge about pip freeze, I will look into that. I don't do Python professionally, except as a Matlab replacement.