@timruffles Yes, That is the approach I would use while creating widgets. But, I just wanted to know if there is some method which could help in using generic code from some javascript library.
Tim Ruffles
@timruffles
I mean you could whip up something like JSON RPC etc, but to avoid the X y problem: why do you want to do that?
Rohan Jaswal
@rohanjaswal2507
I just wanted to know if there exists any approach to do that.
Rohan Jaswal
@rohanjaswal2507
@dsblank I am trying to create a widget to parse urls using clustal today. While doing that, I am facing some problems. I am sharing the screenshot of browser console
I would either ask on one of the jupyter gitter chats, or ask in the ipywidgets github issues. It looks clear that there are errors here.
Rohan Jaswal
@rohanjaswal2507
@dsblank what are these errors related to? Moreover, the errors this time are different while the code is same.
How is that possible?
Douglas Blank
@dsblank
I don't know... I would have to dive into the issue. But you can get help from the jupyter people, I suspect. Is this based on @jdfreder's ipython-jsobject?
Rohan Jaswal
@rohanjaswal2507
@dsblank Not exactly based on his work.
Douglas Blank
@dsblank
Does his work directly?
Rohan Jaswal
@rohanjaswal2507
After running some widgets that integrate js in IPython, I noticed that this problem is very common. Error: Script error for "nbextensions/widgets/widgets/js/widget"
http://requirejs.org/docs/errors.html#scripterror
Douglas Blank
@dsblank
Made an issue here: jdfreder/ipython-jsobject#4
Rohan Jaswal
@rohanjaswal2507
Cool. Will catch up there.
Douglas Blank
@dsblank
@rohanjaswal2507 did you see @jdfreder's update? Can you try those changes and see if you can get his code to work?
Rohan Jaswal
@rohanjaswal2507
@dsblank I am trying to get his code working. As he mentioned about the troubles with static assets installation, I am facing some troubles. Have asked him for more help.
Douglas Blank
@dsblank
Ok, thanks for the update. I'll follow along over on the github issue.
Rohan Jaswal
@rohanjaswal2507
Sure. By the way, I was trying to run that code and the problem I am facing is:
Is there any biojs library which which is also available through CDN. I tried the same with MSA(http://cdn.biojs.net/msa/0.4/msa.min.gz.js), but getting some error while loading the script in ipython.
So, is there any other library which could be used in similar fashion to biojs?
@rohanjaswal2507 Let's get this code into github so that we can start to make progress, even drawing on some experts from either biojs, javascript, or ipython.
Let's get the simplest example working of using biojs in ipython, whatever it is. And then see if you can get a jsobject interface working. Then, you should announce yourself to the biojs community, and identify what your plan is. Sound good?
Tim Ruffles
@timruffles
@rohanjaswal2507 an easy way to get anything hosted is https://rawgit.com/. just get a reference to a specific version via a tag on gh, and you can use github as a CDN via rawgit