IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

vor 4 Jahren
12345678910111213141516171819202122232425262728293031
  1. import dash
  2. import dash_bootstrap_components as dbc
  3. import dash_html_components as html
  4. import socket
  5. import arvados
  6. import functools
  7. from .projects import list_projects_html
  8. from .collections import list_collections_html
  9. def main():
  10. app = dash.Dash(__name__, external_stylesheets=[dbc.themes.BOOTSTRAP])
  11. arv = arvados.api('v1')
  12. user = arv.users().current().execute()
  13. # nav_btns = [ dbc.Button(a['name']) for a in projects ]
  14. projects_table = list_projects_html(arv, user['uuid'])
  15. collections_table = list_collections_html(arv, user['uuid'])
  16. app.layout = html.Div([
  17. html.H5('Projects'),
  18. projects_table,
  19. html.H5('Collections'),
  20. collections_table
  21. ], style={ 'margin': '10px' })
  22. app.run_server(host=socket.getfqdn(), debug=True)
  23. main()