-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
just adding nyaplot gem (not even calling) gives me an error on osx (yosemite, 10.10.5) #55
Comments
It seems that dependency of iruby , ex: rczmq or iruby itself caused your problem. txt = "alert(\"Hello, world!\");"
IRuby.display(IRuby.javascript(txt)) |
@domitry thanks - same error
is there a display variable or something I need to set? |
Oops, I just noticed that you execute the script on the shell, not browser.
or
|
Please re-open this if my suggestion not work :) |
thanks @domitry
but the nyaplot gem by itself won't blow up with the iruby require removed. I guess my basic iruby (ipython?) installation is not working? I guess I may just have to bang my head against that for a while :-/ Any tips? If I remove I will also try https://github.com/dilcom/gnuplotrb as @v0dro suggests ... |
Yes, maybe you failed to install IPython. Can you try to run |
Using Plot#show works only on IRuby notebook. Example: https://github.com/domitry/nyaplot/blob/v2/examples/rb/basic.rb |
@domitry I could not - got the same error. Trying to do
but I still get the same error as before if the iruby and nyaplot gems are required - whether or not I try and draw anything. I can view my script in the iruby notebook view through the browser, but cannot immediately see how to run it there ... |
Run Then copy lines in |
thanks @domitry - right - I have the running - really appreciate your help. Only difficulty now, is that in the notebook everything is running relative to the location of the iruby gem, rather than my project folder, which I was requiring some other classes relatively, and loading files from: /Users/tansaku/.rvm/gems/ruby-2.2.3/gems/iruby-0.2.7/lib/iruby/ Do I need to hard code all my paths relative to root, or is there a way to make the iruby notebook run from a particular point on the file system? My googles and github issue searches "iruby require_relative" are drawing blanks ATM. |
in the meantime I hardcoded all the paths relative to root, but then I get:
works fine if I remove the |
Maybe |
thanks so much for your ongoing help on this @domitry. I would expect I'm on OSX rather than PC, but so I followed your earlier advice, and I have https://github.com/domitry/nyaplot/blob/v2/examples/rb/basic.rb working generating graphs that I can view in html files. It seems like
and looking in the javascript console I get:
so maybe I need ipywidgets ... or maybe the basic script operation I'm following needs changing. I'm following the tutorial here: http://v0dro.github.io/blog/2014/11/25/data-analysis-in-ruby-basic-data-manipulation-and-plotting/ In particular I'm trying to print out something thats a DaruFrame I've installed ipywidgets, and now the error in the js console is just:
but I think I see how I can use nyaplot to generate the html graphs for me - just wanted to add all the above to record the process I was going through. Please don't feel you need to offer any more help, unless you feel like there is something important I have missed in my exploration :-) |
first two lines of the file:
``ruby
require 'iruby'
require 'statsample'
The text was updated successfully, but these errors were encountered: