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!
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

32 行
839B

  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()