-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refreshing the Galaxy history after putting data in it. #3
Comments
That would be really nice, agreed. Howevever since the client is polling the server for history updates, there's no way for the server to tell the client anything ahead of the next scheduled poll. I bet we could do something like this though: http://stackoverflow.com/questions/7502047/can-scripts-in-iframe-interact-with-scripts-in-the-main-pag Because the docker and galaxy instances are on the same domain we can probably trigger javascript to click the refresh history button. We can definitely do that on notebook save. No idea how we'll do it on put() requests though. |
Okay, I've tested this today and cannot get this to work. It may be for any number of reasons (I'm certainly no JS expert, perhaps someone who is will be able to fix this.) I tested it by opening up a new notebook and running the following in a cell: from IPython.display import HTML
js = """
<script type="text/javascript>
$("#history-refresh-button").click();
</script>
"""
HTML(js) In the context of a browser JS console window, this works correctly and reloads the history. In the context of IPython if fails to execute the refresh. |
From IRC, we'll have to have a PubSubHub of some manner running on the notebook image, which can be subscribed to by JS within the mako template. Whenever we receive a notification of a new history item, we can call
|
It would be nice if we were able to refresh the history after we have transferred some data to it. I'm not aware of any function from bioblend that supports that ...
The text was updated successfully, but these errors were encountered: