In [ ]:
from ovation.session import connect
from ovation.lab.upload import upload_resource_group
import urllib

from tqdm import tqdm_notebook

In [ ]:
s = connect(input('Email: '), api='https://app-services.ovation.io')

Upload a folder as a ResourceGroup


In [ ]:
entity_id = '53a35fff-5383-44e7-8294-3a0b21938439' # Ovation Research File ID

In [ ]:
path = input('Folder path: ')

In [ ]:
group = upload_resource_group(s, entity_id, path, progress=tqdm_notebook)

In [ ]:
proxy_url = "{api}/proxy/v1/resources/{token}/{group_id}/{file}".format(api=s.api_base,
                                                                   token=s.token,
                                                                   group_id=group.id,
                                                                   file='index.html')

print('Proxy URL: {}'.format(proxy_url))

Display iframe


In [ ]:
from IPython.display import HTML
HTML('<iframe src="{}" width=700 height=500></iframe>'.format(proxy_url))

In [ ]: