ResidentMario / py_d3

D3 block magic for Jupyter notebook.
MIT License
451 stars 40 forks source link

Unable to run specific version of D3 #20

Closed sl2902 closed 4 years ago

sl2902 commented 4 years ago

I tried to run the py_d3 library on Kaggle kernel, but it failed Here are the steps I followed

!pip install py_d3 %load_ext py_d3

%%d3 "3.5.17"

However, when I check the version, it points to 5.12.0. This results in the notebook failing to produce any output. I get a d3.scale.category20() undefined error; this is because in the latest version it is d3.schemaCategory20. Interestingly, when I run this locally, on my machine, it runs fine, and the output is rendered. Any idea why it fails on Kaggle?

Any help is appreciated. Thanks!

ResidentMario commented 4 years ago

py_d3 requires that certain UI elements be present on the screen to work. These UI elements are present in a notebook instance, but likely absent in the (completely homebrew) Kaggle UI.

As a result py_d3 is not expected to work in Kaggle Notebooks, and I don't claim to support them.

On Tue, Nov 26, 2019, 12:38 PM Sundeep notifications@github.com wrote:

I tried to run the py_d3 library on Kaggle kernel, but it failed Here are the steps I followed

!pip install py_d3 %load_ext py_d3

%%d3 "3.5.17"

However, when I check the version, it points to 5.12.0. This results in the notebook failing to produce any output. I get a d3.scale.category20() undefined error; this is because in the latest version it is d3.schemaCategory20. Interestingly, when I run this locally, on my machine, it runs fine, and the output is rendered. Any idea why it fails on Kaggle?

Any help is appreciated. Thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ResidentMario/py_d3/issues/20?email_source=notifications&email_token=AA2OIZKKAJOVXMUOYCRHXGLQVVNJFA5CNFSM4JR3Q2Q2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H4GAGLA, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA2OIZMAFKR2W7G4ZLQ446LQVVNJFANCNFSM4JR3Q2QQ .