ipychart icon indicating copy to clipboard operation
ipychart copied to clipboard

ipychart.js for distribution

Open tmolbergen opened this issue 1 year ago • 0 comments

Hi,

Again might be a stupid question as the primary usecase for ipychart is with jupyter notebooks and not necessarily for usage with webpages.

Regardless I thought it was worth a try to ask;

When I use the get_html_template() I noticed that the javascript tries to load ipychart.js - naturally this isent avaliable cause I dont have the js file available (and I cant say I have found a way to get it either).

I tried transpiling the typescript libaries with the jupyter dependencies but I must admit that my knowledge around typescript and jupyter notebooks is coming to short.

Is there a way you can publish the ipychart.js with all the necessary dependencies so that it dosent have fall back to to use unpkg.com, there seems to be a noticeable delay when loading the chart because of the 404 it has to wait for and then starting to load the html-manager and so on and so fourth.

Falling back to https://unpkg.com/ for ipychart@^0.5.2

There also seems to be some exceptions in the unpkg libs (again I have no idea what they means)

Uncaught (in promise) SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data h https://unpkg.com/@jupyter-widgets/html-manager@^0.18.0/dist/embed-amd.js:208 h https://unpkg.com/@jupyter-widgets/html-manager@^0.18.0/dist/embed-amd.js:208

tmolbergen avatar Oct 06 '24 10:10 tmolbergen