Skip to content

Commit 4902e57

Browse files
authored
import IPython only when code42 shell is actually run (#366)
1 parent ba0aa54 commit 4902e57

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/code42cli/cmds/shell.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import click
2-
import IPython
32

43
from code42cli import BANNER
54
from code42cli.options import sdk_options
@@ -9,4 +8,6 @@
98
@sdk_options()
109
def shell(state):
1110
"""Open an IPython shell with py42 initialized as `sdk`."""
11+
import IPython
12+
1213
IPython.embed(colors="Neutral", banner1=BANNER, user_ns={"sdk": state.sdk})

0 commit comments

Comments
 (0)