kernel dies when creating iruby notebook

前端 未结 3 986
挽巷
挽巷 2021-01-15 01:41

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

相关标签:
3条回答
  • 2021-01-15 02:21

    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.

    0 讨论(0)
  • 2021-01-15 02:38

    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
    
    0 讨论(0)
  • 2021-01-15 02:42

    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
    
    0 讨论(0)
提交回复
热议问题