Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use table_widget #1068

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
47 changes: 28 additions & 19 deletions calculation_history.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -50,24 +50,34 @@
" color: #2c3e50;\n",
" }\n",
" </style>\n",
" <div class=\"page-title\">Calculation history</div>\n",
" <div class=\"page-title\">Calculation History</div>\n",
superstar54 marked this conversation as resolved.
Show resolved Hide resolved
" <div class=\"how-to-section\">\n",
" <h2>How to use this page</h2>\n",
" <h2>How to Use This Page</h2>\n",
" <p>\n",
" This page allows you to view and manage your calculation history. Use the table below to\n",
" see all jobs in the database. You can use the following filters to narrow down your search:\n",
" This page allows you to view, filter, sort, and manage your calculation history.\n",
" </p>\n",
" <h4>Filters and Search</h4>\n",
" <ul>\n",
" <li><b>Label search field:</b> Enter a job label to find matching jobs.</li>\n",
" <li><b>Job state dropdown:</b> Filter jobs based on their state (e.g., finished, running).</li>\n",
" <li><b>Date range picker:</b> Select a start and end date to view jobs created within that range.</li>\n",
" <li><b>Properties filter:</b> Select specific properties associated with jobs.</li>\n",
" <li><b>Quick Search Field:</b> Use the search bar above the table to find jobs by any visible field.</li>\n",
" <li><b>Column-Specific Filters:</b> Filter data directly in each column using their respective filter options.</li>\n",
" <li><b>Job State Dropdown:</b> Filter jobs by their state (e.g., Finished, Running).</li>\n",
" <li><b>Date Range Picker:</b> Select a start and end date to narrow down jobs based on creation date.</li>\n",
" <li><b>Properties Filter:</b> Select one or more properties to narrow the results. Only calculations that include all the selected properties will be displayed. Leave all checkboxes unselected to include calculations regardless of their properties.</li>\n",
" </ul>\n",
" <h4>Table Actions</h4>\n",
" <ul>\n",
" <li><b>Editable Fields:</b> Edit the <b>label</b> and <b>description</b> of a job directly by clicking on the respective fields.</li>\n",
" <li><b>Inspect:</b> Click on a job's ID link to view detailed information.</li>\n",
" <li><b>Delete:</b> Remove a job by clicking the \"Delete\" link in its row. A confirmation page will be opened.</li>\n",
" <li><b>Download:</b> Download raw data (i.e. input and output files) and/or the AiiDA archive of a job using the \"Download\" link.</li>\n",
" </ul>\n",
" <h4>Display Options</h4>\n",
" <ul>\n",
" <li><b>Sorting:</b> Click any column header to sort the table by that column.</li>\n",
" <li><b>Column Management:</b> Show, hide columns to customize the table view.</li>\n",
" <li><b>Time Format:</b> Toggle between \"Absolute\" (specific dates) and \"Relative\" (time elapsed).</li>\n",
" <li><b>ID Format:</b> Switch between \"PK\" or \"UUID\" for job identification.</li>\n",
" </ul>\n",
" <p>\n",
" Each row in the table provides links to inspect, delete or download a job. To delete a job, click the \"Delete\"\n",
" link in the respective row. To view detailed information about a job, click the \"PK\" link. To download the\n",
" input/output files of a job, click the \"Download\" link.\n",
" </p>\n",
" </div>\n",
" \"\"\"\n",
")\n",
Expand Down Expand Up @@ -104,11 +114,10 @@
"metadata": {},
"outputs": [],
"source": [
"from aiidalab_qe.app.utils.search_jobs import QueryInterface\n",
"from aiidalab_qe.app.utils.search_jobs import CalculationHistory\n",
"\n",
"calculation_history = QueryInterface()\n",
"calculation_history.setup_table()\n",
"calculation_history.filters_layout"
"calculation_history = CalculationHistory()\n",
"calculation_history.main"
]
},
{
Expand All @@ -117,13 +126,13 @@
"metadata": {},
"outputs": [],
"source": [
"calculation_history.table"
"calculation_history.load_table()"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "base",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand Down
Loading
Loading