SciRuby / daru-view

daru-view is for easy and interactive plotting in web application & IRuby notebook. daru-view is a plugin gem to the existing daru gem.
https://sciruby.github.io/daru-view/
MIT License
95 stars 20 forks source link

Compatible with Jupyter Lab? #140

Closed kojix2 closed 3 years ago

kojix2 commented 5 years ago

Hello!

Hello. Thank you for developing a powerful gem.

But, Is daru / view compatible with Jupyter Lab? https://jupyterlab.readthedocs.io/en/stable/

I got errors when I tried to use daru/view with Jupyter Lab. But Jupyter Notebook works well. So I can use daru-view now.

image image

kojix2 commented 5 years ago

130

Solved. I installed latest version of Daru. Thank you.

Shekharrajak commented 5 years ago

Hello @kojix2 , Thanks for update about the issue ! New version of the daru will be released soon and this issue will not occur.

I mostly tested graphs in IRuby notebook, simply running iruby notebook. I believe you have installed iruby gem and registered the Ruby 2.6.0, then running the Jupyter lab, right ? Just curious to know, if there is anyother way :)

kojix2 commented 5 years ago

Yes. That's right @Shekharrajak I use Ruby 2.6.0 + Ubuntu + Jupyter Lab I just type jupyter lab instead of jupyter notebook. Then start Ruby 2.6 lab notebook. It works well! That's fantastic!

image

kojix2 commented 5 years ago

Well Google charts works. However, the high charts does not work on Jupyter Lab.

Shekharrajak commented 5 years ago

@kojix2 , please paste the code that you are using.

kojix2 commented 5 years ago

Well.. I checked only Google Charts and misunderstood that everything was working. Google Charts became usable by installing the latest Daru. But highcharts do not work. You will see Javascript code as shown in the first image of this issue.

Shekharrajak commented 5 years ago

Hi @kojix2 ,

I believe you have set the plotting library to :highcharts to use this adapter by running Daru::View.plotting_library = :highcharts.

This will load the required js files in your webpage or IRuby notebook.

Please confirm it once.