Now, what was missing until today, was easy access to gists in Bioclipse itself. No
gist.load(33421) yet. There still is not, but I uploaded earlier today a Wizard for it. (The manager will follow later). Right click on an open Project, select New -> Other, and pick Download Gist:
and click Next:
Then, just type the number of the Gist you want to open in Bioclipse, for example 18315 (see Bioclipse2 Scripting #1: from SMILES to a UFF optimized structure in Jmol), and click another Next to select a file name and location:
The current code does require you to know the Gist number, so you'll need a web browser to look it up, but we do have search facilities in mind. Also, while the code attempts so, the resulting Gist is not automatically openend in an editor (a bug). Another idea is to just install the egit plugin in Bioclipse :)
Update: the manager is now available too. See this code example: http://gist.github.com/47981
ReplyDeleteHow do you handle security? We've considered a similar sort of feature for Avogadro -- search GitHub to generate a list of Python-Avo scripts.
ReplyDelete(There's a Mac text editor TextMate which does this too.)
My worry is about security -- it allows users to download arbitrary code which will operate on their data!
It seems like the alternatives are to either review and approve every script or to open a potential security hole. (I'd like to hope that everyone is ethical, but there are risks.)
The wizard does not allow automatic download, as it clearly is user triggered... and I hope the user knows what he is doing.
ReplyDeleteRegarding the 'gist.load()', and the 'ui.download(URI)' I want to add... that indeed introduces a potential security risk... Bioclipse currently is not a sandbox... I will need to bring this up on the mailing list...
Smile, you're on the GitHub Blog.
ReplyDelete