August 25th, 2024

Ruby in Jupyter Notebook

IRuby is a Ruby kernel for Jupyter notebooks, allowing Ruby code execution, output redirection, LaTeX rendering, and integration with libraries for advanced plotting and visualization, enhancing data presentation.

Read original articleLink Icon
Ruby in Jupyter Notebook

IRuby is a Ruby kernel for Jupyter notebooks that allows users to run Ruby code in a web-based interface. It integrates with various Ruby gems and provides features such as displaying output, including images and LaTeX, directly in the notebook. Users can install IRuby using the command `gem install iruby` and start the notebook with `iruby notebook`. The notebook supports standard output and error redirection, and it can display mathematical equations and HTML representations. Additionally, it integrates with libraries like Gnuplot for plotting and Rubyvis for visualizations, allowing for both 2D and 3D graphics. The notebook also supports data structures like arrays and hashes, which can be displayed as HTML tables. Overall, IRuby enhances the interactive programming experience for Ruby developers by providing a rich set of features for data visualization and presentation.

- IRuby is a Ruby kernel for Jupyter notebooks, enabling Ruby code execution in a web interface.

- Users can install IRuby with `gem install iruby` and start it using `iruby notebook`.

- The notebook supports output redirection, LaTeX rendering, and HTML display.

- It integrates with libraries like Gnuplot and Rubyvis for advanced plotting and visualization.

- Data structures can be displayed as HTML tables, enhancing data presentation capabilities.

Related

How to Use Jupyter Notebooks: The Ultimate Guide – DataCamp

How to Use Jupyter Notebooks: The Ultimate Guide – DataCamp

Jupyter notebooks are crucial for technical and data work, offering code, output, and text in one document. DataLab, a hosted service, enhances collaboration and database connectivity. Popular among data professionals, they come in hosted and local types, with DataLab providing a user-friendly hosted option.

Show HN: A modern Jupyter client for macOS

Show HN: A modern Jupyter client for macOS

Satyrn is a Jupyter client for Mac with fast startup, context-aware prompts, minimalist design, and a modern command palette. It supports Black code formatting, easy graph/table copying, and seamless virtual environment management. User-friendly, it directly handles ipynb files, detects kernels, and needs no setup.

Is there something like Jupiter for C/C++

Is there something like Jupiter for C/C++

Cling and Jupyter with the xeus-cling kernel offer interactive C++ coding environments, enabling state retention, JIT compilation, and iterative development, similar to the experience provided by Jupyter for Python.

RubyGateway: Embed Ruby in Swift

RubyGateway: Embed Ruby in Swift

RubyGateway is a framework for integrating Ruby code in Swift applications on macOS and Linux, supporting bidirectional API calls, easy installation, and comprehensive documentation, licensed under MIT.

Ruby's official documentation just got a new look

Ruby's official documentation just got a new look

Ruby is an interpreted, object-oriented programming language popular for web development, offering features like exception handling and garbage collection. It is portable across various operating systems and has community support.

Link Icon 13 comments
By @isodev - 5 months
I love the idea. It's similar to what the Elixir folks have been working on with Livebook https://livebook.dev which seems somewhat more refined on the UI side + the benefits of distributed erlang/elixir (e.g. a livebook can interface with a live system and interact with the remote application/gpu etc).
By @kinduff - 5 months
There is also jupyter_on_rails [0] which integrates both. Using it feels so good, I love how an app can suddently become a playground or a sandbox.

[0]: https://github.com/Yuki-Inoue/jupyter_on_rails

By @DwnVoteHoneyPot - 5 months
This is a dead project. Everything in the SciRuby/sciruby-notebooks Github repository hasn't been updated in 8,9 years.
By @DagsEoress - 5 months
Is any of this usable on hosted GPU notebooks (e.g. paperspace)?

I'm currently diving into Machine Learning using Python + Scikit-learn, and I'd love to one day replace Python with Ruby. But looking at the current ML ecosystem I don't see that happening. Does anyone have experience building (Supervised / Unsupervised) models using something other than Python (including deployment)?

By @vidarh - 5 months
This renders better for me straight from Github than it does on nbviewer.org:

https://github.com/SciRuby/sciruby-notebooks/blob/master/get...

By @turriblegrapes - 5 months
nbviewer has nothing to do with ruby specifically, this example links to a notebook using existing iruby kernel

> nbviewer is an open source project under the larger Project Jupyter initiative > along with other projects like Jupyter Notebook, JupyterLab, and JupyterHub.

https://nbviewer.org/faq#what-is-nbviewer

By @BaculumMeumEst - 5 months
Does anyone have a way to use generative AI to generate Jupyter notebooks? I've tried with prompts but it chokes on the markup, and also I'm wondering if the markup wastes too much context for that to be a good idea anyways. Right now I just use Cursor or Claude, copy replies, and chop them up into blocks manually.
By @bmacho - 5 months
Needs (2016)
By @joshdavham - 5 months
This looks great! I’m already running Node as well as python in Jupyter notebooks so to see more languages being added is always great
By @Kalanos - 5 months
i thought there already was a ruby kernel.

are you the original developer or a new maintainer of iruby?

By @nomilk - 5 months
Rubyter notebook =)
By @portpecos - 5 months
Finally!!