From a074c445cb737a535619308f53512feec5f6606e Mon Sep 17 00:00:00 2001 From: Sami Jaghouar Date: Mon, 9 Jan 2023 10:39:53 +0100 Subject: [PATCH] feat: apply joan code Signed-off-by: Sami Jaghouar --- docarray/helper.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docarray/helper.py b/docarray/helper.py index 6d5b676ada6..d4df9f26bf1 100644 --- a/docarray/helper.py +++ b/docarray/helper.py @@ -9,8 +9,6 @@ from typing import Any, Dict, Optional, Sequence, Tuple, Union, TYPE_CHECKING from collections import Counter -import hubble - if TYPE_CHECKING: # pragma: no cover from docarray import Document, DocumentArray @@ -525,9 +523,13 @@ def login(interactive: Optional[bool] = None, force: bool = False, **kwargs): :param interactive: If set to true, login will support notebook environments, otherwise the enviroment will be inferred. :param force: If set to true, overwrite token and re-login. """ + import hubble + hubble.login(interactive=interactive, force=force) def logout(): """Log out of Hubble account.""" + import hubble + hubble.logout()