sciruby-notebooks icon indicating copy to clipboard operation
sciruby-notebooks copied to clipboard

Plotting not working

Open lokeshh opened this issue 8 years ago • 10 comments

Plotting output isn't present in the notebooks. See for example: Usage of Vector (see the 18th cell).

I tried running the notebook with the latest gems and it's still not working.

lokeshh avatar Mar 13 '16 16:03 lokeshh

@lokeshh try this link.

arafatkatze avatar Mar 13 '16 17:03 arafatkatze

@Arafatk I went to link, still I do not see any plots.

lokeshh avatar Mar 13 '16 17:03 lokeshh

@lokeshh For the link that I had mentioned above. I went to the 18th input cell and saw a plot, this was simply done using chrome and I could see the plot on the link even in my phone. Then i downloaded the notebook and ran it on my computer and it was still working. For running it in computer you need iruby and nyaplot.

arafatkatze avatar Mar 13 '16 17:03 arafatkatze

Notebooks sometimes don't render. It's a nyaplot issue.

https://github.com/domitry/nyaplot/issues/52 https://github.com/domitry/nyaplot/issues/45

v0dro avatar Mar 13 '16 18:03 v0dro

@v0dro shouldn't the output of nbviewer be same for both us? I am using Firefox.

lokeshh avatar Mar 13 '16 18:03 lokeshh

It's supposed to be. But that's an unresolved bug. Has happened to me too.

v0dro avatar Mar 13 '16 19:03 v0dro

Like you said, notebooks sometimes don't render; it's my understanding that notebooks on nbviewer are already rendered (their output are already decided, they do not run at the time we click the link) so how can it be displaying different for both of us?

lokeshh avatar Mar 13 '16 19:03 lokeshh

You can always pull the notebook onto your PC and run it for yourself if it's not showing properly on nbviewer; unless you're willing to patch nyaplot or nbviewer, whatever is the source of the issue.

v0dro avatar Mar 14 '16 09:03 v0dro

I figured out why plots were not being displayed in nbviewer while working in Mozilla. It's because Mozilla was blocking http links while Chrome didn't. I'll soon send a patch.

lokeshh avatar Mar 15 '16 16:03 lokeshh

Great!

v0dro avatar Mar 15 '16 18:03 v0dro