def publish_to_baas(self, url, study_name=None, username=None):
"""
Publishes a tree on a Boris as a Service instance.
:param url: url to a instance (e.g. http://transmart-arborist.thehyve.nl/).
:param study_name: a nice name.
:param username: if no username is given, you will be prompted for one.
:return: the url that points to the study you've just uploaded.
"""
study_name = study_name or self.study_name or input('Enter study name:')
json_data = self.concept_tree.jstree.json_data_string
new_url = arborist.publish_to_baas(url, json_data, study_name, username)
return HTML('<a target="_blank" href="{l}">{l}</a>'.format(l=new_url))
评论列表
文章目录