Skip to content
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

nbviewer doesn't show nyaplot output #45

Closed
minad opened this issue Jun 7, 2015 · 2 comments
Closed

nbviewer doesn't show nyaplot output #45

minad opened this issue Jun 7, 2015 · 2 comments

Comments

@minad
Copy link
Contributor

minad commented Jun 7, 2015

http://nbviewer.ipython.org/github/SciRuby/sciruby-notebooks/blob/master/getting_started.ipynb

@domitry
Copy link
Owner

domitry commented Jun 22, 2015

I have not confirmed the mechanism yet, but it will resolved if you execute the line require 'nyaplot' at the end of a box on IPython.

In [1]: 
require 'nyaplot'

In [2]:
 p = Plot.new
p.add(:scatter, (0..10).to_a, (0..10).to_a.shuffle)
p.show
In [1]: 
require 'nyaplot'
print "hoge"

In [2]:
p = Plot.new
p.add(:scatter, (0..10).to_a, (0..10).to_a.shuffle)
p.show

The former code fragment will work properly, but the latter will not.

@lokeshh
Copy link

lokeshh commented Mar 16, 2016

These facts might be useful:

  • Yesterday, nbviewer wasn't working for me in Mozilla though it was working in Chrome, then I changed the http links to https links and it started working in Mozilla.
  • Today, it's working in Mozilla also without changing the http links to https but only when internet speed is good. When failing Firefox web developer console gives the error Error: Load timeout for modules: d3 http://requirejs.org/docs/errors.html#timeout

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants