diff --git a/host/greatfet/commands/greatfet_shell.py b/host/greatfet/commands/greatfet_shell.py index fbbca74c..f5466e21 100755 --- a/host/greatfet/commands/greatfet_shell.py +++ b/host/greatfet/commands/greatfet_shell.py @@ -66,12 +66,15 @@ def main(): singleton_text = "singleton " if args.singleton else "" print("A GreatFET {}object has been created for you as 'gf'. Have fun!\n".format(singleton_text)) + # Mute annoying venv warning. + config = IPython.terminal.ipapp.load_default_config() + config.InteractiveShell.warn_venv = False # Create a new shell, and give it access to our created GreatFET object. if IPython.core.getipython.get_ipython() is None: - shell = IPython.terminal.embed.InteractiveShellEmbed.instance() + shell = IPython.terminal.interactiveshell.TerminalInteractiveShell.instance(config=config) else: - shell = IPython.terminal.embed.InteractiveShellEmbed() + shell = IPython.terminal.interactiveshell.TerminalInteractiveShell(config=config) shell.push('gf') # Create nice aliases for our primary interfaces. diff --git a/host/pyproject.toml b/host/pyproject.toml index baf9b77b..2fb3e92b 100644 --- a/host/pyproject.toml +++ b/host/pyproject.toml @@ -32,12 +32,12 @@ dependencies = [ "future", "pyfwup>=0.2", "tqdm", - "setuptools", # cmsis_svd requires pkg_resources + "setuptools", # cmsis_svd requires pkg_resources "cmsis_svd", "tabulate", "prompt_toolkit", "pygreat", - "ipython~=8.25", + "ipython~=8.12", # final version supported by Python 3.8 ] dynamic = ["version"]