from fairdatanow import RemoteData2
import os
Exploring your remote data with tabulator
Another try using panel
Ok, let’s collect the contents of our falnama-project.
= {
configuration 'url': "https://laboppad.nl/falnama-project",
'user': os.getenv('NC_AUTH_USER'),
'password': os.getenv('NC_AUTH_PASS')
}
= RemoteData2(configuration) remote_data
= remote_data.listdir('falnama-project')
file_table
file_table
Please wait while scanning all file paths in remote folder...
<<<<<<< HEAD
Here is an embedded iframe:
And a link
remote_data.download_selected()
Ready with downloading 2 selected remote files to local cache: /home/koen-linux/.cache/fairdatanow
['/home/koen-linux/.cache/fairdatanow/falnama-project/07. Results/01. Xray-images (RMA)/3.xray-jpgs/71803-10_bottom_Falnama_grenz_2-2_edited.jpg',
'/home/koen-linux/.cache/fairdatanow/falnama-project/07. Results/01. Xray-images (RMA)/3.xray-jpgs/71803-10_top_Falnama_grenz_1-2_edited.jpg']
FUNCTIONS
RemoteData2
RemoteData2 (configuration)
Recursively scan the contents of a remote webdav server as specified by configuration
.
to_iframe
to_iframe (panel_layout, html_file, height=500)
Save panel_layout
object as full HTML page html_file
in iframes* subfolder.
Returns: iframe_link
In this way it should be possible to preserve rich interactive visualizations directly in web pages.
See: https://panel.holoviz.org/reference/panes/HTML.html#html-documents*