From f6ff58f9898e18bf51b8a7afdfbc08c38cc87b01 Mon Sep 17 00:00:00 2001 From: Jusong Yu Date: Mon, 2 Oct 2023 16:08:54 +0000 Subject: [PATCH] f-m: typos --- aiidalab_widgets_base/computational_resources.py | 6 +++--- notebooks/computational_resources.ipynb | 10 ---------- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/aiidalab_widgets_base/computational_resources.py b/aiidalab_widgets_base/computational_resources.py index ff72d7132..963218ec2 100644 --- a/aiidalab_widgets_base/computational_resources.py +++ b/aiidalab_widgets_base/computational_resources.py @@ -1402,10 +1402,10 @@ def _templates_changed(self, _=None): def _render(self): """Render the template variables widget.""" metadata = self.templates.get("metadata", {}) - tooptip = metadata.get("tooltip", None) + tooltip = metadata.get("tooltip", None) - if tooptip: - self._help_text.value = f"""
{tooptip}
""" + if tooltip: + self._help_text.value = f"""
{tooltip}
""" for line_key, line_str in self.templates.items(): env = Environment() diff --git a/notebooks/computational_resources.ipynb b/notebooks/computational_resources.ipynb index 8113e23b5..288614313 100644 --- a/notebooks/computational_resources.ipynb +++ b/notebooks/computational_resources.ipynb @@ -64,16 +64,6 @@ "display(resources1)\n", "display(resources2)" ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "0221cb24", - "metadata": {}, - "outputs": [], - "source": [ - "resources1.quick_setup.ssh_widgets.layout.display = \"block\"" - ] } ], "metadata": {