---
title: "Using Ruby in Jupyter Notebook"
publication: "Ruby Weekly"
issue: 665
published_at: "2023-08-03"
canonical_url: "https://rubyweekly.com/issues/665"
---

Plus a big Rack::Attack update, why Rails needs components, and Ruby Prize 2023 nominations are open. |        

#​665 — August 3, 2023 

[Read on the Web](https://rubyweekly.com/issues/665)  

Together with [![AppSignal logo\](https://res.cloudinary.com/cpress/image/upload/c_fill,g_auto,e_trim,w_700,h_120/e_make_transparent/co_white,e_outline:7/lme8p344dw1aodshz9px.png)](https://blog.appsignal.com/2023/03/22/introducing-appsignal-log-management.html?utm_source=ruby-weekly-sponsored&utm_medium=email&utm_campaign=2023-03-22)   

Ruby Weekly 

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60,q_auto/jinbmnubz9bj3n6klg03.jpg)](https://code.avi.nyc/why-ruby-on-rails-needs-components)  

[Why Rails Needs Components](https://code.avi.nyc/why-ruby-on-rails-needs-components) — Do you think having shareable, reusable, easily styled components would make Rails even more compelling? Avi makes the case for (maybe) the next big frontend change for Rails. 

Avi Flombaum   

Love or loathe the idea, it's great to see Avi put his money where his mouth is by working on [bringing the `shadcn/ui` suite of components to Rails](https://shadcn.rails-components.com/). He's worth [🐦 following on Twitter](https://twitter.com/aviflombaum) as he's actively doing a lot of work in this area right now. In related news, Chris Oliver (of Go Rails fame) is working on a set of [Tailwind-based components for Stimulus](https://github.com/excid3/tailwindcss-stimulus-components/), too.  [![\](https://copm.s3.amazonaws.com/35df3d0b.png)](https://blog.appsignal.com/2023/03/22/introducing-appsignal-log-management.html?utm_source=ruby-weekly-sponsored&utm_medium=email&utm_campaign=2023-03-22) 

[Smooth Logging for Ruby Developers](https://blog.appsignal.com/2023/03/22/introducing-appsignal-log-management.html?utm_source=ruby-weekly-sponsored&utm_medium=email&utm_campaign=2023-03-22) — Unlock the power of logs with AppSignal. Find all the key information in a few clicks in our clean and intuitive interface. Monitoring doesn’t need to be a hassle, AppSignal is here to help. 

AppSignal sponsor   

🏆 [Nominations Open for _Ruby Prize 2023_](https://rubyprize.jp/) — _The Ruby Prize_ is an annual award designed to motivate and reward participation in the Ruby community by giving recognition to people who have benefitted Ruby and its ecosystem over the past year. Ruby’s creator, Matz, chairs the prize and helps with the judging too. Nominations are open until September 10. 

Matz and the Ruby Prize Team   

You can check out [the main winner and fellow nominees from 2022](https://rubyprize.jp/22_rubyprize.html) and [2021](https://rubyprize.jp/21_rubyprize.html) if you want to see which folks have been recognized in the past.  

▶️ RubyCademy presents [▶️ a classic talk from the late, great Jim Weirich](https://www.youtube.com/watch?v=1BVFlvRPZVM) from RubyConf 2009 about using SOLID principles in Ruby. The principles still stand, and it's great to see Jim speak again. 

👋 Amanda Perino of the Rails Foundation [introduces us to the team who built the Rails World site](https://rubyonrails.org/2023/8/2/introducing-the-team-behind-the-rails-world-website). 

🎙 Talking of _Rails World_, if you're a Ruby / Rails podcaster, they're inviting you to [host an episode of your show at the conference](https://rubyonrails.org/2023/8/1/host-your-podcast-at-rails-world-with-buzzsprout) and are offering some perks in turn. 

💎 [Over on Twitter](https://twitter.com/bradgessler/status/1686794548629086208), Brad Gessler heaps praise on [Phlex](https://www.phlex.fun/) and its 'write views in pure Ruby' approach: _"The ability to treat a view in Rails as a plain 'ol Ruby object in Rails is such an absurd and ridiculous superpower. Phlex is like TailwindCSS ... it's a really terrible idea, but once you use it you realize everything else is worse."_  

📕 Tutorials, Articles, and Videos 

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60,q_auto/liiqx8bzdolhkawxhc7l.jpg)](https://nithinbekal.com/posts/ruby-jupyter-notebooks/)  

[Using Ruby with Jupyter Notebooks](https://nithinbekal.com/posts/ruby-jupyter-notebooks/) — The ‘notebook’ style of development is fantastic in certain situations (and particularly popular in academia and the AI/ML world) and [Jupyter](https://jupyter.org/) provides the best known platform for working with them, but wouldn’t using Ruby instead of Python be nice? It turns out to be pretty simple to set up Jupyter with a Ruby kernel, even if the ecosystem is somewhat weaker. 

Nithin Bekal   

[Logging in Ruby: (Almost) Everything You Need to Know](https://www.akshaykhot.com/logging-in-ruby/) — Advanced? No. Thorough? Quite. Akshay does a good job at showing off the `Logger` class, logger levels, and adding logging to a basic Ruby webapp. 

Akshay Khot   

[Fixed Price Monthly Code Maintenance for Rails Apps](https://reinteractive.com/service/code-care) — No time to do those small but critical updates and features? CodeCare will take care of necessary tweaks, bug fixes, upgrades and ongoing improvements for your app. 

Reinteractive / CodeCare sponsor   

🤖 [Integrating _Replicate_ into a Rails App](https://blog.saeloun.com/2023/07/28/integrate-replicate-ai-in-rails-application/) — [Replicate](https://replicate.com/) is a cloud-based machine learning platform where you can run all sorts of ML models (including OpenAI Whisper or Stable Diffusion) with per-second billing. 

Gowsik Vivekanandan   

[How to Run Multiple Versions of Rails on Heroku](https://www.fastruby.io/blog/how-to-run-multiple-versions-of-rails-on-heroku.html) — Perhaps you want to run a different version of Rails on your staging or review app before going to production. 

Henrique Medeiros   

[Elixir Syntax for Ruby Developers: A Quick Intro](https://phoenixonrails.com/blog/elixir-syntax-for-ruby-developers) — We’re not trying to encourage you to drop Ruby – honest. 
George Arrowsmith   

▶[Advice on Sunsetting a Rails Application with Robby Russell](https://www.therubyonrailspodcast.com/481) 
The Ruby on Rails Podcast podcast   

🔊 [Generating Audio Waveform Images in Ruby](https://code.avi.nyc/generating-audio-waveform-images-in-ruby) 
Avi Flombaum   

[How to Make a Fly.io GraphQL API Call from Ruby](https://www.mikecoutermarsh.com/how-to-make-a-fly-api-call-from-ruby/) 
Mike Coutermarsh  

🛠 Code & Tools 

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60,q_auto/f1ksi7nappnlgl0yuj1e.jpg)](https://github.com/rack/rack-attack)  

[Rack::Attack 6.7: Rack Middleware for Blocking and Throttling](https://github.com/rack/rack-attack) — A long standing project that provides you with some added options for protecting your Rails and other Rack-based apps from bad clients whether through blocking or throttling their requests. [6.7](https://github.com/rack/rack-attack/releases/tag/v6.7.0) is the first update in a year, but adds Rack 3 support. 

Rack Project   

[Tomlib: Fast, Standards-Compliant TOML Parser and Generator](https://github.com/kgiszczak/tomlib) — [TOML](https://toml.io/en/) (named after inventor Tom Preston-Werner) is a simple config file format that’s reminiscent of INI, but better. 

Kamil Giszczak   

[Fully Managed Postgres in the Cloud](https://crunchybridge.com/start?utm_source=cprb-lnk-0804) — The support experience you always wanted! Never hesitate about opening a ticket again due to anticipating a lackluster response. 

Crunchy Bridge sponsor   

[A Gem to Simplify Using Slack's 'Block Kit' Layouts](https://bgvo.io/rails/ruby/2023/07/31/a-ruby-gem-to-simplify-using-slack-clock-kit.html) — [Blocks](https://api.slack.com/reference/block-kit/blocks) are components you can use within the Slack chat system to create interactive messages. 

Borja Garcia de Vinuesa Ordovás   

[Piperator 1.3: Composable Pipelines for Enumerators](https://github.com/lautis/piperator) — Compose streaming pipelines with lazy enumerables. Inspired by both Elixir’s pipe operator and Node.js streams. 

Ville Lautanala   

[Seedie: Generate Realistic Data for your ActiveRecord Models](https://github.com/keshavbiswa/seedie) — Seedie uses the Faker gem and a YAML file to seed your database with ‘real-ish’ data so you don’t have to manage a giant `seeds.rb`file. 

Keshav Biswa     

Jobs  

[TravelJoy | Senior Full Stack Engineer | Remote in USA/Canada | Full-Time](https://join.tjoy.io/fs-eng) — TravelJoy is the market network for leisure travel. Thousands of travel agents love and depend on our product every day. 
TravelJoy - Bring the joy back into travel planning   

[Senior Backend Engineer (Backend)](https://sweatcoin.teamtailor.com/jobs/2274924-senior-backend-developer-ruby-on-rails?promotion=595108-trackable-share-link-rubyweekly) — 12M user devices sent us data daily last week, 6M of them opened the app. Apply your knowledge and help make our users healthier. 
Sweatcoin   

[Find Ruby Jobs with Hired](https://hired.com/join/?utm_source=newsletter&utm_medium=sponsor&utm_campaign=%28b2c%29%28l-all%29%28r-all%29%28cooper-rubyweekly%29&utm_content=easy-job-hunting) — Hired makes job hunting easy-instead of chasing recruiters, companies approach you with salary details up front. Create a free profile now. 
Hired      

- 📄 [HexaPDF 0.33.0](https://hexapdf.gettalong.org/news/2023/hexapdf-0-33-0.html) – A powerful PDF creation and manipulation library. This version adds table support.
- [minitest-spec-rails 7.1](https://github.com/metaskills/minitest-spec-rails) – Make Rails use MiniTest::Spec.
- [Polyphony 1.5](https://github.com/orgs/digital-fabric/discussions/116)
 ↳ Powerful fiber-based concurrency library for Ruby.
- [React on Rails 13.4](https://www.shakacode.com/react-on-rails/docs/)
 ↳ React + Webpack + Rails + rails/webpacker integration.
- [Octokit.rb 7.0](https://github.com/octokit/octokit.rb) – Ruby GitHub API toolkit.
- [Gemsmith 20.3](https://github.com/bkuhlmann/gemsmith) – CLI tool for smithing gems.
- [Alba 2.4](https://github.com/okuramasafumi/alba/releases/tag/v2.4.0) – JSON serializer for Ruby.
- [MaintenanceTasks 2.2](https://github.com/Shopify/maintenance_tasks)
 ↳ Rails engine for queueing and managing data migrations.
- [RuboCop::GraphQL 1.4](https://github.com/DmitryTsepelev/rubocop-graphql)
 ↳ Enforce graphql-ruby best practices.
- [RubyGems 3.4.18](https://blog.rubygems.org/2023/08/02/3.4.18-released.html)
- [Sequel 5.71.0](https://github.com/jeremyevans/sequel/blob/master/CHANGELOG)         

Curated by [Peter Cooper](https://twitter.com/cooperx86) and [Glenn Goodrich](https://twitter.com/ruprict).
Published by [Cooperpress](https://cooperpress.com/). 

[Change your email](https://rubyweekly.com/edit_subscription/*|UID|*) or [Stop getting this newsletter.](https://rubyweekly.com/leave/*|UID|*) 

© Cooper Press Ltd · Fairfield Enterprise Centre, Louth, LN11 0LS, United Kingdom [Supporting Ukraine](https://linktr.ee/RazomForUkraine) 

Other weekly newsletters we publish include [Postgres Weekly](https://postgresweekly.com/), [React Status](https://react.statuscode.com/), [Frontend Focus](https://frontendfoc.us/), and [JavaScript Weekly](https://javascriptweekly.com/).
