I am completely noob in SciRuby. For the first time I am using SciRuby. I am following this video to get an overview of how to use SciRuby and plot graphs, charts etc. When
It was Ivan's answer that tipped me off.
In addition to declaring the iruby and nyaplot gems, you need to declare the appropriate ZeroMQ interface.
So, in your Gemfile,
gem 'iruby'
gem 'nyaplot'
gem 'rbczmq' # or 'ffi-rzmq'
# any other gems you want to use should go here too
Alternatively, if you're working on a project with a gemspec, you need the following two lines in the spec:
gem.add_development_dependency 'iruby', '~>0.2'
gem.add_development_dependency 'rbczmq'
And also one for nyaplot if that's what you're using.
Try to add a file named Gemfile into the folder, which you're using to run iruby, with the following contents:
gem 'iruby'
gem 'nyaplot'
# any other gems you want to use should go here too
This method helped me:
I had installed ruby kernel in jupyter notebook following SciRuby's GitHub page and it worked well that day. But after some days, I again ran it and the kernel started getting dead.
I don't know the exact reason behind this but I again followed the same method and it installed some extra gems and it worked!!
Follow this
sudo apt install libtool libffi-dev ruby ruby-dev make
sudo apt install libzmq3-dev libczmq-dev
gem install cztop iruby
iruby register --force
Run the notebook again
jupyter-notebook