From 8bb411f6b212e2203b1a6e4d1c1f87489518599d Mon Sep 17 00:00:00 2001 From: Jusong Yu Date: Mon, 2 Dec 2024 21:01:00 +0100 Subject: [PATCH] rda --- src/aiida/__init__.py | 5 ++++- src/aiida/tools/ipython/ipython_magics.py | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/aiida/__init__.py b/src/aiida/__init__.py index 00f51cff95..88d97aaddc 100644 --- a/src/aiida/__init__.py +++ b/src/aiida/__init__.py @@ -106,7 +106,10 @@ def get_file_header(comment_char: str = '# ') -> str: def load_ipython_extension(ipython): - """Load the AiiDA IPython extension, using ``%load_ext aiida``.""" + """Load the AiiDA IPython extension, using ``%load_ext aiida``. + + :param ipython: InteractiveShell instance. If ``None``, the global InteractiveShell is used. + """ from aiida.tools.ipython.ipython_magics import load_ipython_extension load_ipython_extension(ipython) diff --git a/src/aiida/tools/ipython/ipython_magics.py b/src/aiida/tools/ipython/ipython_magics.py index 486ee50481..342053eb55 100644 --- a/src/aiida/tools/ipython/ipython_magics.py +++ b/src/aiida/tools/ipython/ipython_magics.py @@ -205,7 +205,6 @@ def register_ipython_extension(ipython=None): The %aiida IPython extension provides the same environment as the `verdi shell`. :param ipython: InteractiveShell instance. If omitted, the global InteractiveShell is used. - """ if ipython is None: ipython = get_ipython()