Open vansnowpea opened 7 years ago
This repo is not being actively maintained 🙁 In the meantime, I suggest that you look at hydrogen to run code inline in Atom's text editor, nteract (a new Jupyter notebook client built using Electron, React, Redux, RxJS), Jupyter Notebook, and JupyterLab.
Having said that, nteract is currently extracting its many components into separate packages which will allow them to be reused and assembled to create new apps. When I have the time, I would like to use them to completely refactor this project.
@gnestor are you still thinking about doing the refactor based on nteract? What would a project like that take?
Hey @draperjames! It would involve taking the current notebook implementation in nteract and modifying it to work within Atom. Specifically, https://github.com/nteract/nteract/blob/master/src/notebook/index.js (the root React component on nteract's notebok) would need to be modified to fit in https://github.com/jupyter/atom-notebook/blob/master/lib/main.js#L22-L38. What happens in https://github.com/jupyter/atom-notebook/blob/master/lib/main.js is:
executeCell
action: https://github.com/jupyter/atom-notebook/blob/master/lib/main.js#L26In order to start/connect to a kernel, you may need some pieces from https://github.com/nteract/nteract/tree/master/src/main.
@rgbkrk Do you think it's currently feasible to use nteract's notebook from within an Atom extension?
I think you'll be able to pull a lot of the pieces in, I'm not sure what the data / event model should be for use in Atom though.
I just chatted with @rgbkrk and [nteract's ipc events (from Electron) such as menu commands, starting a kernel, and opening a notebook need to be wired to Atom's commands. Recap: copy over src/notebook
from nteract into atom-notebook, edit the lib/main.js
to register an opener for ipynb, a view provider (nteract's store as model and nteract's notebook React component as view), and replace usage of ipc
with Atom commands. Best of luck!! 👍👍
Ideally, I'd like to see more packages get extracted out of nteract desktop into lerna packages instead of copying it over, though I understand it being a bit easier to get going by grabbing and going.
hi , I tried both install in atom and install it through git , but failed.
and I am in China.
while I can install some other packages in atom
would you have a check ?
Thanks.