fubark / cyber

Fast and concurrent scripting.
https://cyberscript.dev
MIT License
1.16k stars 38 forks source link

Jupyter Kernel #75

Closed ccleavinger closed 7 months ago

ccleavinger commented 7 months ago

Hi, I've been interested in Cyber for a while!

Like many people I'm frustrated with the current python/pythonic landscape of AI. I feel like the versatility, speed, ease of interop with C, and embeddability of Cyber provide the foundation for a strong language in AI/ML. If implementing a Jupyter Kernel with xeus sounds interesting/promising for the future of cyber please follow up and let me know!

I'd be more than happy to try and build the kernel out, though keep in mind it will most likely remain a toy kernel.

fubark commented 7 months ago

It would be nice to have a Jupyter kernel readily available to experiment with! I don't think there is one yet, although @DaelonSuzuka has expressed interest on discord (just a screenshot so far though).

DaelonSuzuka commented 7 months ago

just a screenshot so far though

No, I actually implemented a jupyter/IPython plugin to run cyber in cells. It's published as part of my cyberlang python package.

Example (look at the last 2 cells): https://github.com/DaelonSuzuka/cyber-python/blob/master/example_notebook.ipynb

ccleavinger commented 7 months ago

I wasn't aware of the IPython plugin, that's some amazing work! That pretty much answered my question, if we really want to offer a strong/fast option in Jupyter notebooks then investing in a kernel is a good idea. Otherwise it's pretty much non-essential. Thanks @DaelonSuzuka!