From 1f2005154590e9d65155ed92e5b0a8c37bcd8649 Mon Sep 17 00:00:00 2001 From: Joan Fontanals Martinez Date: Mon, 28 Nov 2022 22:52:57 +0100 Subject: [PATCH] ci: hide hubble import --- docarray/helper.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docarray/helper.py b/docarray/helper.py index b5858724517..0e7cbdf62db 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 DocumentArray @@ -496,9 +494,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()