Giter VIP home page Giter VIP logo

Comments (9)

willwhitney avatar willwhitney commented on July 20, 2024

This is an issue with the Ruby kernel (SciRuby/iruby#29) β€”Β it just needs to skip the signature check when it's given an empty signing key.

I probably won't have time to write a PR for this myself in the next couple of days (I'm coming up against a paper deadline for a conference). It looks like you can just add another clause at this line and skip the check if the key is empty. It would be great if you or someone else would write a pull request to fix it!

from hydrogen.

minad avatar minad commented on July 20, 2024

should be fixed in sciruby/iruby master. But what about implementing signatures in hydrogen?

from hydrogen.

kaibioinfo avatar kaibioinfo commented on July 20, 2024

I reinstalled iruby from sciruby/iruby master. But it is still not working yet. The complete shell output is

[32394:0602/155941:INFO:CONSOLE(97)] "Available kernels:", source: /home/kaidu/.atom/packages/Hydrogen/lib/kernel-manager.coffee (97)
[32394:0602/155941:INFO:CONSOLE(84)] "sending execute", source: /home/kaidu/.atom/packages/Hydrogen/lib/kernel.coffee (84)
[32394:0602/155941:INFO:CONSOLE(100)] "<IDS|MSG>,,{"msg_id":"69fbfbca-4bde-4d7b-aca3-65a6ad760382","username":"","session":0,"msg_type":"execute_request","version":"5.0"},{},{},{"code":"x=5\nx","silent":false,"store_history":true,"user_expressions":{},"allow_stdin":false}", source: /home/kaidu/.atom/packages/Hydrogen/lib/kernel.coffee (100)
[32394:0602/155941:INFO:CONSOLE(133)] "shell message:", source: /home/kaidu/.atom/packages/Hydrogen/lib/kernel.coffee (133)

from hydrogen.

minad avatar minad commented on July 20, 2024

Maybe my fix wasn't correct and @willwhitney can help out when he has time. I am totally not into atom/hydrogen, haven't used it yet.

from hydrogen.

willwhitney avatar willwhitney commented on July 20, 2024

After installing IRuby from master I get the following error (for any code, run either in Hydrogen or the notebook). Have I just done something wrong installing?

NoMethodError: undefined method `local_variable_defined?' for #<Binding:0x007fd8d20bc838>
/Library/Ruby/Gems/2.0.0/gems/iruby-0.2.4/lib/iruby/backend.rb:9:in `eval'
/Library/Ruby/Gems/2.0.0/gems/iruby-0.2.4/lib/iruby/kernel.rb:87:in `execute_request'
/Library/Ruby/Gems/2.0.0/gems/iruby-0.2.4/lib/iruby/kernel.rb:47:in `dispatch'
/Library/Ruby/Gems/2.0.0/gems/iruby-0.2.4/lib/iruby/kernel.rb:37:in `run'
/Library/Ruby/Gems/2.0.0/gems/iruby-0.2.4/lib/iruby/command.rb:74:in `run_kernel'
/Library/Ruby/Gems/2.0.0/gems/iruby-0.2.4/lib/iruby/command.rb:33:in `run'
/Library/Ruby/Gems/2.0.0/gems/iruby-0.2.4/bin/iruby:5:in `<top (required)>'
/usr/bin/iruby:23:in `load'
/usr/bin/iruby:23:in `<main>'

from hydrogen.

willwhitney avatar willwhitney commented on July 20, 2024

And yeah, I do want to add signing to Hydrogen at some point. At present it only ever starts kernels on localhost and can't connect to remote kernels, so it's not critical.

from hydrogen.

minad avatar minad commented on July 20, 2024

@willwhitney this means your ruby version is too old. But the problem in iruby with no signatures should be fixed.

from hydrogen.

kaibioinfo avatar kaibioinfo commented on July 20, 2024

It is working now if I save the file before running hydrogen!
It's a bit strange, as in the console output it seems that hydrogen is sending the expression and not the filename. However, saving the file solves the problem.

from hydrogen.

willwhitney avatar willwhitney commented on July 20, 2024

OK, glad it's working for you now!

@minad thanks for the quick fix!

from hydrogen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.