All Projects → SciRuby → Iruby

SciRuby / Iruby

Licence: mit
Official gem repository: Ruby kernel for Jupyter/IPython Notebook

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Iruby

Lfortran
Official mirror of https://gitlab.com/lfortran/lfortran. Please submit pull requests (PR) there. Any PR sent here will be closed automatically.
Stars: ✭ 220 (-63.33%)
Mutual labels:  jupyter, repl, interactive
Almond
A Scala kernel for Jupyter
Stars: ✭ 1,354 (+125.67%)
Mutual labels:  jupyter, repl
Bowtie
Create a dashboard with python!
Stars: ✭ 724 (+20.67%)
Mutual labels:  jupyter, interactive
Tslab
Interactive JavaScript and TypeScript programming with Jupyter
Stars: ✭ 240 (-60%)
Mutual labels:  jupyter, repl
Readline Sync
Synchronous Readline for interactively running to have a conversation with the user via a console(TTY).
Stars: ✭ 601 (+0.17%)
Mutual labels:  repl, interactive
perfume
Interactive performance benchmarking in Jupyter
Stars: ✭ 33 (-94.5%)
Mutual labels:  jupyter, interactive
Jupyter Php
A PHP Kernel for Jupyter
Stars: ✭ 179 (-70.17%)
Mutual labels:  jupyter, repl
Nteract
📘 The interactive computing suite for you! ✨
Stars: ✭ 5,713 (+852.17%)
Mutual labels:  jupyter, repl
klipse-repl
Beginners friendly Clojure REPL
Stars: ✭ 44 (-92.67%)
Mutual labels:  interactive, repl
gorilla-repl
A fork of Jony Epsilon's rich REPL for Clojure in the notebook style.
Stars: ✭ 22 (-96.33%)
Mutual labels:  interactive, repl
Ipython
Official repository for IPython itself. Other repos in the IPython organization contain things like the website, documentation builds, etc.
Stars: ✭ 15,107 (+2417.83%)
Mutual labels:  jupyter, repl
Ielixir
Jupyter's kernel for Elixir programming language
Stars: ✭ 312 (-48%)
Mutual labels:  jupyter, repl
InteractiveCodeSearch.jl
Interactively search Julia code from terminal
Stars: ✭ 74 (-87.67%)
Mutual labels:  interactive, repl
Hydrogen
Run code interactively, inspect data, and plot. All the power of Jupyter kernels, inside your favorite text editor.
Stars: ✭ 3,763 (+527.17%)
Mutual labels:  jupyter, repl
Murex
Bash-like $SHELL designed for greater commandline productivity and safer shell scripts
Stars: ✭ 527 (-12.17%)
Mutual labels:  repl
Cookbook 2nd Code
Code of the IPython Cookbook, Second Edition, by Cyrille Rossant, Packt Publishing 2018 [read-only repository]
Stars: ✭ 541 (-9.83%)
Mutual labels:  jupyter
Nbviewer App
A Jupyter notebook viewer for macOS
Stars: ✭ 521 (-13.17%)
Mutual labels:  jupyter
Sklearn Classification
Data Science Notebook on a Classification Task, using sklearn and Tensorflow.
Stars: ✭ 518 (-13.67%)
Mutual labels:  jupyter
Rebel Readline
Terminal readline library for Clojure dialects
Stars: ✭ 574 (-4.33%)
Mutual labels:  repl
Emacs Jupyter
An interface to communicate with Jupyter kernels.
Stars: ✭ 540 (-10%)
Mutual labels:  jupyter

IRuby

Gem Version Build Status Binder

IRuby is a Ruby kernel for Jupyter project.

Try IRuby

You can try IRuby with a sample notebook on Binder (the same link as the banner placed above):

https://mybinder.org/v2/gh/RubyData/binder/master?filepath=ruby-data.ipynb

The following URL launches JupyterLab directly on Binder.

https://mybinder.org/v2/gh/RubyData/binder/master?filepath=../lab

Installation

Requirements

If both ffi-rzmq and cztop are installed, ffi-rzmq is used. If you prefer cztop, set the following environment variable.

export IRUBY_SESSION_ADAPTER="cztop"
  • We recommend the Pry backend for full functionality.
  • If you want to install the latest version of IRuby from the source code, try specific_install.
gem specific_install https://github.com/SciRuby/iruby

Ubuntu

Install Jupyter.

Ubuntu 17+

sudo apt install libtool libffi-dev ruby ruby-dev make
sudo apt install libzmq3-dev libczmq-dev

gem install ffi-rzmq
gem install iruby --pre
iruby register --force

Ubuntu 16

CZTop requires CZMQ >= 4.0.0 and ZMQ >= 4.2.0. The official packages for Ubuntu 16.04 don't satisfy these version requrements, so you need to install from source.

sudo apt install libtool libffi-dev ruby ruby-dev make
sudo apt install git libzmq-dev autoconf pkg-config
git clone https://github.com/zeromq/czmq
cd czmq
./autogen.sh && ./configure && sudo make && sudo make install

gem install cztop
gem install iruby --pre
iruby register --force

Windows

Install git and Jupyter. DevKit is necessary for building RubyGems with native C-based extensions.

Install ZeroMQ.

pacman -S mingw64/mingw-w64-x86_64-zeromq
gem install ffi-rzmq
gem install iruby --pre
iruby register --force

macOS

Install ruby with rbenv or rvm. Install Jupyter.

Homebrew

brew install automake gmp libtool wget
brew install zeromq --HEAD
brew install czmq --HEAD
# export LIBZMQ_PATH=$(brew --prefix zeromq)/lib
# export LIBCZMQ_PATH=$(brew --prefix czmq)/lib
# gem install cztop
gem install ffi-rzmq
gem install iruby --pre
iruby register --force

MacPorts

If you are using macports, run the following commands.

port install libtool autoconf automake autogen
gem install ffi-rzmq
gem install iruby

Docker

Try RubyData Docker Stacks. Running jupyter notebook:

docker run -p 8888:8888 rubydata/datascience-notebook

Installation for JRuby

You can use Java classes in your IRuby notebook.

  • JRuby version >= 9.0.4.0
  • cztop gem
  • iruby gem

After installation, make sure that your env is set up to use jruby.

$ env ruby -v

If you use RVM, it is enough to switch the current version to jruby.

If you have already used IRuby with a different version, you need to generate a new kernel:

$ iruby register --force

Notebooks

Take a look at the example notebook and the collection of notebooks which includes a Dockerfile to create a containerized installation of iruby and other scientific gems. You can find the prebuild image at dockerhub.

Contributing

Contributions to IRuby are very welcome.

To former contributors

In February 2021, IRuby became the canonical repository and is no longer a fork from minrk/iruby. Please fork from this repository again before making pull requests.

License

Copyright (c) IRuby contributors and the Ruby Science Foundation.

Licensed under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].