diff --git a/examples/data/rdm_tutorial/tutorial.ipynb b/examples/data/rdm_tutorial/tutorial.ipynb index ccb7b6fea7ef9b2d6ae309d2df90bbe4cee11c2c..2e0ffc4f5c87229b3ecb33f19bddb6e08698331f 100644 --- a/examples/data/rdm_tutorial/tutorial.ipynb +++ b/examples/data/rdm_tutorial/tutorial.ipynb @@ -8676,6 +8676,7 @@ " Filters,\n", " Format,\n", " Layout,\n", + " Pagination,\n", " WidgetHistogram,\n", " WidgetPeriodicTable,\n", " WidgetScatterPlot,\n", @@ -8692,6 +8693,10 @@ " include=[f'*#{schema}'],\n", " ),\n", " filters_locked={'section_defs.definition_qualified_name': schema},\n", + " pagination=Pagination(\n", + " order_by=f'data.photoluminescence_quantum_yield#{schema}',\n", + " order='desc',\n", + " ),\n", " columns=Columns(\n", " selected=[\n", " 'results.material.chemical_formula_hill',\n", @@ -8699,17 +8704,24 @@ " f'data.peak_emission_wavelength#{schema}',\n", " f'data.delayed_lifetime#{schema}',\n", " f'data.singlet_triplet_energy_splitting#{schema}',\n", - " f'data.DOI_number#{schema}',\n", + " 'references',\n", " ],\n", " options={\n", " 'results.material.chemical_formula_hill': Column(),\n", " f'data.photoluminescence_quantum_yield#{schema}': Column(\n", " format=Format(decimals=2, mode='standard')\n", " ),\n", - " f'data.peak_emission_wavelength#{schema}': Column(),\n", - " f'data.delayed_lifetime#{schema}': Column(),\n", - " f'data.singlet_triplet_energy_splitting#{schema}': Column(),\n", - " f'data.DOI_number#{schema}': Column(),\n", + " f'data.peak_emission_wavelength#{schema}': Column(\n", + " format=Format(decimals=2, mode='standard'), unit='nm'\n", + " ),\n", + " f'data.delayed_lifetime#{schema}': Column(\n", + " format=Format(decimals=2, mode='standard'), unit='µs'\n", + " ),\n", + " f'data.singlet_triplet_energy_splitting#{schema}': Column(\n", + " format=Format(decimals=2, mode='standard'),\n", + " unit='eV',\n", + " ),\n", + " 'references': Column(),\n", " },\n", " ),\n", " filter_menus=FilterMenus(\n", @@ -8717,6 +8729,7 @@ " 'material': FilterMenu(label='Material'),\n", " 'elements': FilterMenu(label='Elements / Formula', level=1, size='xl'),\n", " 'custom_quantities': FilterMenu(label='Custom Quantities', size='l'),\n", + " 'metadata': FilterMenu(label='Visibility / IDs / Schema'),\n", " }\n", " ),\n", " dashboard=Dashboard(\n", @@ -8742,18 +8755,21 @@ " WidgetHistogram(\n", " type='histogram',\n", " layout={'lg': Layout(w=12, h=4, x=12, y=7)},\n", - " autorange=True,\n", + " autorange=False,\n", " nbins=30,\n", - " scale='linear',\n", - " quantity=f'data.delayed_lifetime#{schema}',\n", + " scale='1/4',\n", + " x=Axis(quantity=f'data.delayed_lifetime#{schema}', unit='µs'),\n", " ),\n", " WidgetHistogram(\n", " type='histogram',\n", " layout={'lg': Layout(w=12, h=4, x=12, y=7)},\n", - " autorange=True,\n", + " autorange=False,\n", " nbins=30,\n", " scale='linear',\n", - " quantity=f'data.singlet_triplet_energy_splitting#{schema}',\n", + " x=Axis(\n", + " quantity=f'data.singlet_triplet_energy_splitting#{schema}',\n", + " unit='eV',\n", + " ),\n", " ),\n", " ]\n", " ),\n", @@ -8773,7 +8789,7 @@ " - `columns`: This controls which columns will be shown in the results table.\n", " - `dashboard`: Controls which widgets to show by default above the search results.\n", "\n", - "Once this app is installed with a plugin, it will become accessible in the \"Explore\" menu. To view this app in action, you can [head over to our demo NOMAD Oasis](https://nomad-lab.eu/prod/v1/oasis/gui/about/information), and select the app in the \"Explore\" menu.\n", + "Once this app is installed with a plugin, it will become accessible in the \"Explore\" menu. To view this app in action, you can [head over to our demo NOMAD Oasis](https://nomad-lab.eu/prod/v1/oasis/gui/about/information), and select the \"TADF Molecules\" app in the \"Explore\" menu.\n", "\n", "💡 **Note:** If you want to go deeper into the topic, you can look at the ['How to write an app docs'](https://nomad-lab.eu/prod/v1/staging/docs/howto/plugins/apps.html)." ]