From 5fcb668f07fa8ddecf346bb1832da18cb4fbf7f2 Mon Sep 17 00:00:00 2001 From: Varniex Date: Wed, 11 Dec 2024 16:40:56 +0530 Subject: [PATCH 1/2] 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 From 76afc42e9a72fc25245fc54e7c3ba09b5f87f556 Mon Sep 17 00:00:00 2001 From: Varniex Date: Wed, 11 Dec 2024 16:46:09 +0530 Subject: [PATCH 2/2] adding required packages to setup.cfg file --- setup.cfg | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index ce201ab3..2aee703c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -29,12 +29,14 @@ classifiers = packages = find: include_package_data = True install_requires = + appdirs colour + diskcache ipython>=8.18.0 isosurfaces fontTools - mapbox-earcut manimpango>=0.6.0 + mapbox-earcut matplotlib moderngl moderngl_window @@ -51,6 +53,7 @@ install_requires = skia-pathops svgelements>=1.8.1 sympy + tempfile tqdm typing-extensions; python_version < "3.11" validators