diff --git a/notebooks/viewers.ipynb b/notebooks/viewers.ipynb index a3f60c004..6399166b9 100644 --- a/notebooks/viewers.ipynb +++ b/notebooks/viewers.ipynb @@ -6,9 +6,11 @@ "metadata": {}, "outputs": [], "source": [ - "# Load the default AiiDA profile.\n", - "from aiida import orm, load_profile\n", - "load_profile();" + "# default profile of the AiiDA installation is not configured.\n", + "from aiida import orm\n", + "from aiida.manage.configuration import load_documentation_profile\n", + "\n", + "load_documentation_profile()" ] }, { diff --git a/notebooks/wizard_apps.ipynb b/notebooks/wizard_apps.ipynb index bceb89b75..b48649424 100644 --- a/notebooks/wizard_apps.ipynb +++ b/notebooks/wizard_apps.ipynb @@ -13,13 +13,15 @@ { "cell_type": "code", "execution_count": null, - "id": "b5256919", + "id": "edfc9c5a", "metadata": {}, "outputs": [], "source": [ - "from aiida import load_profile\n", + "# Load the dummy profile to make sure the docs build succeed even if the current\n", + "# default profile of the AiiDA installation is not configured.\n", + "from aiida.manage.configuration import load_documentation_profile\n", "\n", - "load_profile();" + "load_documentation_profile()" ] }, { @@ -323,6 +325,14 @@ "# Display the app to the user.\n", "display(app)" ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "4672a973", + "metadata": {}, + "outputs": [], + "source": [] } ], "metadata": { @@ -341,7 +351,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.13" + "version": "3.9.15" } }, "nbformat": 4,