From 5fcb668f07fa8ddecf346bb1832da18cb4fbf7f2 Mon Sep 17 00:00:00 2001 From: Varniex Date: Wed, 11 Dec 2024 16:40:56 +0530 Subject: [PATCH] fixing `get_ipython` import error --- manimlib/scene/scene.py | 2 +- manimlib/scene/scene_embed.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/manimlib/scene/scene.py b/manimlib/scene/scene.py index bd1b7be7..5c008f93 100644 --- a/manimlib/scene/scene.py +++ b/manimlib/scene/scene.py @@ -1,12 +1,12 @@ from __future__ import annotations from collections import OrderedDict -import os import platform import random import time from functools import wraps +from IPython.core.getipython import get_ipython from pyglet.window import key as PygletWindowKeys import numpy as np diff --git a/manimlib/scene/scene_embed.py b/manimlib/scene/scene_embed.py index ff507dfd..41b2d7b7 100644 --- a/manimlib/scene/scene_embed.py +++ b/manimlib/scene/scene_embed.py @@ -1,7 +1,8 @@ import inspect import pyperclip -import re +import os +from IPython.core.getipython import get_ipython from IPython.terminal import pt_inputhooks from IPython.terminal.embed import InteractiveShellEmbed