ki-tools / kitools-py

Tools for working with data in Ki analyses
Apache License 2.0
3 stars 0 forks source link

function to browse data in Synapse #5

Open hafen opened 5 years ago

hafen commented 5 years ago

A very simple but convenient function for viewing a dataset on the provider should take a remote_uri for a dataset and open it up in the default web browser.

For example see: https://github.com/ki-tools/kitools/blob/master/R/data.R#L370-L372 Maybe using this package? https://docs.python.org/3/library/webbrowser.html

hafen commented 5 years ago

While writing docs, I'm realizing how nice this feature would be to have to help users feel comfortable with knowing where their data is on Synapse. I'm thinking this could be available in either of the following ways:

KiProjectResource.browse()
kiproject.browse_resource("syn:syn123456")

If browse_resource() could work by name as well, that would be nice.

@pcstout would it be easy to add this?