zed icon indicating copy to clipboard operation
zed copied to clipboard

Jupyter Notebook

Open fdionisi opened this issue 2 years ago • 29 comments

Check for existing issues

  • [X] Completed

Is your feature request related to a problem?

I'm not sure "Feature Request" is the right thing to do, but I think this is a bit more than just a syntax highlight + LSP.

Every now and then, I go back to VS Code to work with Jupyter notebooks, and it would be nice to stay on Zed (+ collaboration 😙👌). This task is probably a monumental one, as it also involves a different buffer view and possibly something that could be done by the community (?), but I still want to put it on the radar.

Describe the solution you'd like

It would be great to open Jupyter notebooks directly in Zed and be able to interact with it (adding new blocks, running code, etc.), similarly to what VS Code does.

If applicable, add mockups / screenshots to help present your vision of the feature

Screenshot 2022-07-22 at 10 44 53

fdionisi avatar Jul 22 '22 08:07 fdionisi

Is jupyter support with the ability to run the cells going to be implemented ?

anarchy89 avatar Mar 16 '23 09:03 anarchy89

I would suggest Hydrogen's approach to interface with Jupyter local or remote kernals: https://github.com/nteract/hydrogen

gabrielalexandrelopes avatar May 23 '23 08:05 gabrielalexandrelopes

I would suggest Hydrogen's approach to interface with Jupyter local or remote kernals: https://github.com/nteract/hydrogen

Hydrogen is definitely a killer feature, it was really awesome to use Hydrogen in Atom! I would love to see it in Zed.

Tom-Boscher avatar Aug 27 '23 02:08 Tom-Boscher

Jupyter notebook support would open up a huge community in Zed, I would certainly be part of the bandwagon if Zed introduced it

mcioffi avatar Oct 27 '23 16:10 mcioffi

@mikayla-maki @JosephTLyons, reading the "room temperature gauge" of the data science community, the interest is pretty strong in Zed, generally speaking, re: (https://github.com/zed-industries/extensions/issues/157) , (https://github.com/zed-industries/extensions/issues/136), & (https://github.com/zed-industries/extensions/issues/145) ... doing a first take on jupyter integration with already supported Python in Zed might pave the way for the community for a future feature

mcioffi avatar Jan 20 '24 02:01 mcioffi

The only reason I haven't moved to Zed is because Jupyter notebooks aren't supported. I'd love to see this :0

noahgsolomon avatar Jan 29 '24 23:01 noahgsolomon

Is there an ETA for compatibility here?

mertdeveci5 avatar Jan 30 '24 21:01 mertdeveci5

I'm looking for people to start working on a integration of nteract Jupyter but I'm a really Rust beginner.

Tom-Boscher avatar Feb 12 '24 01:02 Tom-Boscher

VS Code created some incompatibilities when trying to implement their own version of the notebook frontend resulting in some plotting libraries & widgets not working - among other inconveniences.

I'm not sure if this is possible, but maybe the jupyter installed in the venv could be used to render the notebook?

sa- avatar Feb 16 '24 07:02 sa-

Jupyter notebook support would bring large number of new users to try out Zed. There's probably no other feature with potential to bring so many users.

gluonfield avatar Feb 22 '24 14:02 gluonfield

I would love to use zed for all of my work but because jupyter notebook is not present not moved to zed fully. it is difficult to go back and forth from vs code to zed.

nikhilvishwanath avatar Feb 22 '24 14:02 nikhilvishwanath

I just installed Zed this morning and love the style and speed,

but after finding that Notebook is not supported...

I have to go back to VSCode.

ouj avatar Feb 26 '24 19:02 ouj

Ipython notebooks are also an essential part of how many academics (in Physics, Chemistry, Biology, etc) interact with programming, data analysis and presentation. It would definitely be necessary to incorporate ipython notebooks to make the switch to Zed viable for any of them.

RehmatSChawla avatar Mar 04 '24 17:03 RehmatSChawla

installed Zed. super impressed. found out ipynb not supported. disappointed. back to VS. that was quick. LOL

athakur569 avatar Mar 14 '24 16:03 athakur569

Hang in tight! We're working with a contractor to build some of this out!

JosephTLyons avatar Mar 14 '24 17:03 JosephTLyons

@JosephTLyons That's an awesome news!!

Tom-Boscher avatar Mar 14 '24 21:03 Tom-Boscher

Btw, I saw that Nteract is working on a new version of their Jupyter notebook, using Rust and TypeScript. https://github.com/nteract/nteract-next

Tom-Boscher avatar Mar 14 '24 22:03 Tom-Boscher

Hi! 👋 I'm one of the nteract leads and now working on Zed support for notebooks. I'm prioritizing notebook support in Zed above the nteract-next work.

rgbkrk avatar Mar 14 '24 22:03 rgbkrk

@rgbkrk so excited for this 😄

adammenges avatar Mar 21 '24 21:03 adammenges

Not having integrated jupyter notebooks is the only thing that prevents me from using zed. Glad to hear about the progress!

geoqiao avatar Mar 24 '24 07:03 geoqiao

This is blocking me from using Zed. Also, to leapfrog VS code, if you could add syntax highlighting for SQL written in Python str, you'd have something that might cause folks to switch over.

owenbrown avatar Apr 09 '24 19:04 owenbrown

syntax highlighting for SQL written in Python str

That's a really good idea. If you haven't already, please open a new issue for this!

sa- avatar Apr 09 '24 21:04 sa-

Is there a timeline on the implementation of this feature ?

Joe-Khawand avatar Apr 10 '24 15:04 Joe-Khawand

image

noahgsolomon avatar Apr 10 '24 17:04 noahgsolomon

Is there a timeline on the implementation of this feature ?

No timeline at this time. The tracking issue for implementation and pre-requisites is https://github.com/zed-industries/zed/issues/9778.

rgbkrk avatar Apr 11 '24 02:04 rgbkrk

👋 I recently started using Zed and am greatly enjoying it! My work involves using notebooks near-daily, so I was very glad find this issue and see that @rgbkrk is developing support for Zed. I was also curious to learn more about the codebase and thought that the project sounded very interesting, so I started working on a POC as well. @rgbkrk I don't expect that you'd necessarily have use for this, as it may be redundant to/unaligned with your work. However, if there's any part of it that you think could be made useful to you, please do let me know! I'd love to contribute. The kernel client functionality is currently provided by the jupyter_client Python package though pyo3 bindings -- I'd be happy to try hooking it up to runtimed.

https://github.com/zed-industries/zed/assets/11862683/9ee2be84-c7be-4fb6-a436-9bd496798877

davidagold avatar May 20 '24 08:05 davidagold

Sweet @davidagold!

I'm finally back to working on this again. I like this notebook UI.

In https://github.com/zed-industries/zed/tree/runtimes I'm working with the protocol directly in Rust. I'd rather not introduce python as a development dependency, though it is super cool to see how you wrapped it with PyO3.

I think what might be best to do to ease collaboration and get things moving is for me to put the initial runtime work behind a flag in settings.

rgbkrk avatar May 20 '24 16:05 rgbkrk

Here's the draft PR for runtimes: https://github.com/zed-industries/zed/pull/12062

rgbkrk avatar May 20 '24 17:05 rgbkrk

I think what might be best to do to ease collaboration and get things moving is for me to put the initial runtime work behind a feature flag.

Sounds good! I will look into revising the notebook to use the runtimes functionality included in #12062. Thank you very much for taking a look, @rgbkrk 🙏

davidagold avatar May 21 '24 04:05 davidagold

following! I love zed but need notebooks on the daily :(

sebastian-montero avatar Jun 03 '24 11:06 sebastian-montero