We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Preview without embed broken in jupyter notebooks.
## Description

The embed feature seems to have broken preview in jupyter notebooks.

default:
<img width="1115" alt="Screenshot 2022-03-05 at 3 24 09 PM" src="https://user-images.githubusercontent.com/90276965/156878243-224900ac-8da2-46e5-8ee2-cc9f1852bec8.png">

with media embed:
<img width="1115" alt="Screenshot 2022-03-05 at 3 24 30 PM" src="https://user-images.githubusercontent.com/90276965/156878267-b5d77f95-7953-45e9-b155-baac8f19db35.png">

## Expected Behaviour
Should preview images even without `media_embed`


_Originally posted by @Kiran-Raj-Dev in https://github.com/ManimCommunity/manim/issues/2442#issuecomment-1059732017_

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `manim/utils/ipython_magic.py`
Content:
```
1 """Utilities for using Manim with IPython (in particular: Jupyter notebooks)"""
2 
3 from __future__ import annotations
4 
5 import mimetypes
6 import os
7 import shutil
8 from datetime import datetime
9 from pathlib import Path
10 from typing import Any
11 
12 from manim import Group, config, logger, tempconfig
13 from manim.__main__ import main
14 from manim.renderer.shader import shader_program_cache
15 
16 try:
17     from IPython import get_ipython
18     from IPython.core.interactiveshell import InteractiveShell
19     from IPython.core.magic import (
20         Magics,
21         line_cell_magic,
22         magics_class,
23         needs_local_scope,
24     )
25     from IPython.display import Image, Video, display
26 except ImportError:
27     pass
28 else:
29 
30     @magics_class
31     class ManimMagic(Magics):
32         def __init__(self, shell: InteractiveShell) -> None:
33             super().__init__(shell)
34             self.rendered_files = {}
35 
36         @needs_local_scope
37         @line_cell_magic
38         def manim(
39             self,
40             line: str,
41             cell: str = None,
42             local_ns: dict[str, Any] = None,
43         ) -> None:
44             r"""Render Manim scenes contained in IPython cells.
45             Works as a line or cell magic.
46 
47             .. hint::
48 
49                 This line and cell magic works best when used in a JupyterLab
50                 environment: while all of the functionality is available for
51                 classic Jupyter notebooks as well, it is possible that videos
52                 sometimes don't update on repeated execution of the same cell
53                 if the scene name stays the same.
54 
55                 This problem does not occur when using JupyterLab.
56 
57             Please refer to `<https://jupyter.org/>`_ for more information about JupyterLab
58             and Jupyter notebooks.
59 
60             Usage in line mode::
61 
62                 %manim [CLI options] MyAwesomeScene
63 
64             Usage in cell mode::
65 
66                 %%manim [CLI options] MyAwesomeScene
67 
68                 class MyAweseomeScene(Scene):
69                     def construct(self):
70                         ...
71 
72             Run ``%manim --help`` and ``%manim render --help`` for possible command line interface options.
73 
74             .. note::
75 
76                 The maximal width of the rendered videos that are displayed in the notebook can be
77                 configured via the ``media_width`` configuration option. The default is set to ``25vw``,
78                 which is 25% of your current viewport width. To allow the output to become as large
79                 as possible, set ``config.media_width = "100%"``.
80 
81                 The ``media_embed`` option will embed the image/video output in the notebook. This is
82                 generally undesirable as it makes the notebooks very large, but is required on some
83                 platforms (notably Google's CoLab, where it is automatically enabled unless suppressed
84                 by ``config.embed = False``) and needed in cases when the notebook (or converted HTML
85                 file) will be moved relative to the video locations. Use-cases include building
86                 documentation with Sphinx and JupyterBook. See also the :mod:`manim directive for Sphinx
87                 <manim.utils.docbuild.manim_directive>`.
88 
89             Examples
90             --------
91 
92             First make sure to put ``import manim``, or even ``from manim import *``
93             in a cell and evaluate it. Then, a typical Jupyter notebook cell for Manim
94             could look as follows::
95 
96                 %%manim -v WARNING --disable_caching -qm BannerExample
97 
98                 config.media_width = "75%"
99                 config.media_embed = True
100 
101                 class BannerExample(Scene):
102                     def construct(self):
103                         self.camera.background_color = "#ece6e2"
104                         banner_large = ManimBanner(dark_theme=False).scale(0.7)
105                         self.play(banner_large.create())
106                         self.play(banner_large.expand())
107 
108             Evaluating this cell will render and display the ``BannerExample`` scene defined in the body of the cell.
109 
110             .. note::
111 
112                 In case you want to hide the red box containing the output progress bar, the ``progress_bar`` config
113                 option should be set to ``None``. This can also be done by passing ``--progress_bar None`` as a
114                 CLI flag.
115 
116             """
117             if cell:
118                 exec(cell, local_ns)
119 
120             args = line.split()
121             if not len(args) or "-h" in args or "--help" in args or "--version" in args:
122                 main(args, standalone_mode=False, prog_name="manim")
123                 return
124 
125             modified_args = self.add_additional_args(args)
126             args = main(modified_args, standalone_mode=False, prog_name="manim")
127             with tempconfig(local_ns.get("config", {})):
128                 config.digest_args(args)
129 
130                 renderer = None
131                 if config.renderer == "opengl":
132                     # Check if the imported mobjects extend the OpenGLMobject class
133                     # meaning ConvertToOpenGL did its job
134                     if "OpenGLMobject" in map(lambda cls: cls.__name__, Group.mro()):
135                         from manim.renderer.opengl_renderer import OpenGLRenderer
136 
137                         renderer = OpenGLRenderer()
138                     else:
139                         logger.warning(
140                             "Renderer must be set to OpenGL in the configuration file "
141                             "before importing Manim! Using cairo renderer instead.",
142                         )
143                         config.renderer = "cairo"
144 
145                 try:
146                     SceneClass = local_ns[config["scene_names"][0]]
147                     scene = SceneClass(renderer=renderer)
148                     scene.render()
149                 finally:
150                     # Shader cache becomes invalid as the context is destroyed
151                     shader_program_cache.clear()
152 
153                     # Close OpenGL window here instead of waiting for the main thread to
154                     # finish causing the window to stay open and freeze
155                     if renderer is not None and renderer.window is not None:
156                         renderer.window.close()
157 
158                 if config["output_file"] is None:
159                     logger.info("No output file produced")
160                     return
161 
162                 local_path = Path(config["output_file"]).relative_to(Path.cwd())
163                 tmpfile = (
164                     Path(config["media_dir"])
165                     / "jupyter"
166                     / f"{_generate_file_name()}{local_path.suffix}"
167                 )
168 
169                 if local_path in self.rendered_files:
170                     self.rendered_files[local_path].unlink()
171                 self.rendered_files[local_path] = tmpfile
172                 os.makedirs(tmpfile.parent, exist_ok=True)
173                 shutil.copy(local_path, tmpfile)
174 
175                 file_type = mimetypes.guess_type(config["output_file"])[0]
176                 embed = config["media_embed"]
177                 if embed is None:
178                     # videos need to be embedded when running in google colab.
179                     # do this automatically in case config.media_embed has not been
180                     # set explicitly.
181                     embed = "google.colab" in str(get_ipython())
182 
183                 if file_type.startswith("image"):
184                     result = Image(filename=config["output_file"], embed=embed)
185                 else:
186                     result = Video(
187                         tmpfile,
188                         html_attributes=f'controls autoplay loop style="max-width: {config["media_width"]};"',
189                         embed=embed,
190                     )
191 
192                 display(result)
193 
194         def add_additional_args(self, args: list[str]) -> list[str]:
195             additional_args = ["--jupyter"]
196             # Use webm to support transparency
197             if "-t" in args and "--format" not in args:
198                 additional_args += ["--format", "webm"]
199             return additional_args + args[:-1] + [""] + [args[-1]]
200 
201 
202 def _generate_file_name() -> str:
203     return config["scene_names"][0] + "@" + datetime.now().strftime("%Y-%m-%d@%H-%M-%S")
204
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/manim/utils/ipython_magic.py b/manim/utils/ipython_magic.py
--- a/manim/utils/ipython_magic.py
+++ b/manim/utils/ipython_magic.py
@@ -181,7 +181,7 @@
                     embed = "google.colab" in str(get_ipython())
 
                 if file_type.startswith("image"):
-                    result = Image(filename=config["output_file"], embed=embed)
+                    result = Image(filename=config["output_file"])
                 else:
                     result = Video(
                         tmpfile,

{"golden_diff": "diff --git a/manim/utils/ipython_magic.py b/manim/utils/ipython_magic.py\n--- a/manim/utils/ipython_magic.py\n+++ b/manim/utils/ipython_magic.py\n@@ -181,7 +181,7 @@\n                     embed = \"google.colab\" in str(get_ipython())\n \n                 if file_type.startswith(\"image\"):\n-                    result = Image(filename=config[\"output_file\"], embed=embed)\n+                    result = Image(filename=config[\"output_file\"])\n                 else:\n                     result = Video(\n                         tmpfile,\n", "issue": "Preview without embed broken in jupyter notebooks.\n## Description\r\n\r\nThe embed feature seems to have broken preview in jupyter notebooks.\r\n\r\ndefault:\r\n<img width=\"1115\" alt=\"Screenshot 2022-03-05 at 3 24 09 PM\" src=\"https://user-images.githubusercontent.com/90276965/156878243-224900ac-8da2-46e5-8ee2-cc9f1852bec8.png\">\r\n\r\nwith media embed:\r\n<img width=\"1115\" alt=\"Screenshot 2022-03-05 at 3 24 30 PM\" src=\"https://user-images.githubusercontent.com/90276965/156878267-b5d77f95-7953-45e9-b155-baac8f19db35.png\">\r\n\r\n## Expected Behaviour\r\nShould preview images even without `media_embed`\r\n\r\n\r\n_Originally posted by @Kiran-Raj-Dev in https://github.com/ManimCommunity/manim/issues/2442#issuecomment-1059732017_\n", "before_files": [{"content": "\"\"\"Utilities for using Manim with IPython (in particular: Jupyter notebooks)\"\"\"\n\nfrom __future__ import annotations\n\nimport mimetypes\nimport os\nimport shutil\nfrom datetime import datetime\nfrom pathlib import Path\nfrom typing import Any\n\nfrom manim import Group, config, logger, tempconfig\nfrom manim.__main__ import main\nfrom manim.renderer.shader import shader_program_cache\n\ntry:\n    from IPython import get_ipython\n    from IPython.core.interactiveshell import InteractiveShell\n    from IPython.core.magic import (\n        Magics,\n        line_cell_magic,\n        magics_class,\n        needs_local_scope,\n    )\n    from IPython.display import Image, Video, display\nexcept ImportError:\n    pass\nelse:\n\n    @magics_class\n    class ManimMagic(Magics):\n        def __init__(self, shell: InteractiveShell) -> None:\n            super().__init__(shell)\n            self.rendered_files = {}\n\n        @needs_local_scope\n        @line_cell_magic\n        def manim(\n            self,\n            line: str,\n            cell: str = None,\n            local_ns: dict[str, Any] = None,\n        ) -> None:\n            r\"\"\"Render Manim scenes contained in IPython cells.\n            Works as a line or cell magic.\n\n            .. hint::\n\n                This line and cell magic works best when used in a JupyterLab\n                environment: while all of the functionality is available for\n                classic Jupyter notebooks as well, it is possible that videos\n                sometimes don't update on repeated execution of the same cell\n                if the scene name stays the same.\n\n                This problem does not occur when using JupyterLab.\n\n            Please refer to `<https://jupyter.org/>`_ for more information about JupyterLab\n            and Jupyter notebooks.\n\n            Usage in line mode::\n\n                %manim [CLI options] MyAwesomeScene\n\n            Usage in cell mode::\n\n                %%manim [CLI options] MyAwesomeScene\n\n                class MyAweseomeScene(Scene):\n                    def construct(self):\n                        ...\n\n            Run ``%manim --help`` and ``%manim render --help`` for possible command line interface options.\n\n            .. note::\n\n                The maximal width of the rendered videos that are displayed in the notebook can be\n                configured via the ``media_width`` configuration option. The default is set to ``25vw``,\n                which is 25% of your current viewport width. To allow the output to become as large\n                as possible, set ``config.media_width = \"100%\"``.\n\n                The ``media_embed`` option will embed the image/video output in the notebook. This is\n                generally undesirable as it makes the notebooks very large, but is required on some\n                platforms (notably Google's CoLab, where it is automatically enabled unless suppressed\n                by ``config.embed = False``) and needed in cases when the notebook (or converted HTML\n                file) will be moved relative to the video locations. Use-cases include building\n                documentation with Sphinx and JupyterBook. See also the :mod:`manim directive for Sphinx\n                <manim.utils.docbuild.manim_directive>`.\n\n            Examples\n            --------\n\n            First make sure to put ``import manim``, or even ``from manim import *``\n            in a cell and evaluate it. Then, a typical Jupyter notebook cell for Manim\n            could look as follows::\n\n                %%manim -v WARNING --disable_caching -qm BannerExample\n\n                config.media_width = \"75%\"\n                config.media_embed = True\n\n                class BannerExample(Scene):\n                    def construct(self):\n                        self.camera.background_color = \"#ece6e2\"\n                        banner_large = ManimBanner(dark_theme=False).scale(0.7)\n                        self.play(banner_large.create())\n                        self.play(banner_large.expand())\n\n            Evaluating this cell will render and display the ``BannerExample`` scene defined in the body of the cell.\n\n            .. note::\n\n                In case you want to hide the red box containing the output progress bar, the ``progress_bar`` config\n                option should be set to ``None``. This can also be done by passing ``--progress_bar None`` as a\n                CLI flag.\n\n            \"\"\"\n            if cell:\n                exec(cell, local_ns)\n\n            args = line.split()\n            if not len(args) or \"-h\" in args or \"--help\" in args or \"--version\" in args:\n                main(args, standalone_mode=False, prog_name=\"manim\")\n                return\n\n            modified_args = self.add_additional_args(args)\n            args = main(modified_args, standalone_mode=False, prog_name=\"manim\")\n            with tempconfig(local_ns.get(\"config\", {})):\n                config.digest_args(args)\n\n                renderer = None\n                if config.renderer == \"opengl\":\n                    # Check if the imported mobjects extend the OpenGLMobject class\n                    # meaning ConvertToOpenGL did its job\n                    if \"OpenGLMobject\" in map(lambda cls: cls.__name__, Group.mro()):\n                        from manim.renderer.opengl_renderer import OpenGLRenderer\n\n                        renderer = OpenGLRenderer()\n                    else:\n                        logger.warning(\n                            \"Renderer must be set to OpenGL in the configuration file \"\n                            \"before importing Manim! Using cairo renderer instead.\",\n                        )\n                        config.renderer = \"cairo\"\n\n                try:\n                    SceneClass = local_ns[config[\"scene_names\"][0]]\n                    scene = SceneClass(renderer=renderer)\n                    scene.render()\n                finally:\n                    # Shader cache becomes invalid as the context is destroyed\n                    shader_program_cache.clear()\n\n                    # Close OpenGL window here instead of waiting for the main thread to\n                    # finish causing the window to stay open and freeze\n                    if renderer is not None and renderer.window is not None:\n                        renderer.window.close()\n\n                if config[\"output_file\"] is None:\n                    logger.info(\"No output file produced\")\n                    return\n\n                local_path = Path(config[\"output_file\"]).relative_to(Path.cwd())\n                tmpfile = (\n                    Path(config[\"media_dir\"])\n                    / \"jupyter\"\n                    / f\"{_generate_file_name()}{local_path.suffix}\"\n                )\n\n                if local_path in self.rendered_files:\n                    self.rendered_files[local_path].unlink()\n                self.rendered_files[local_path] = tmpfile\n                os.makedirs(tmpfile.parent, exist_ok=True)\n                shutil.copy(local_path, tmpfile)\n\n                file_type = mimetypes.guess_type(config[\"output_file\"])[0]\n                embed = config[\"media_embed\"]\n                if embed is None:\n                    # videos need to be embedded when running in google colab.\n                    # do this automatically in case config.media_embed has not been\n                    # set explicitly.\n                    embed = \"google.colab\" in str(get_ipython())\n\n                if file_type.startswith(\"image\"):\n                    result = Image(filename=config[\"output_file\"], embed=embed)\n                else:\n                    result = Video(\n                        tmpfile,\n                        html_attributes=f'controls autoplay loop style=\"max-width: {config[\"media_width\"]};\"',\n                        embed=embed,\n                    )\n\n                display(result)\n\n        def add_additional_args(self, args: list[str]) -> list[str]:\n            additional_args = [\"--jupyter\"]\n            # Use webm to support transparency\n            if \"-t\" in args and \"--format\" not in args:\n                additional_args += [\"--format\", \"webm\"]\n            return additional_args + args[:-1] + [\"\"] + [args[-1]]\n\n\ndef _generate_file_name() -> str:\n    return config[\"scene_names\"][0] + \"@\" + datetime.now().strftime(\"%Y-%m-%d@%H-%M-%S\")\n", "path": "manim/utils/ipython_magic.py"}], "after_files": [{"content": "\"\"\"Utilities for using Manim with IPython (in particular: Jupyter notebooks)\"\"\"\n\nfrom __future__ import annotations\n\nimport mimetypes\nimport os\nimport shutil\nfrom datetime import datetime\nfrom pathlib import Path\nfrom typing import Any\n\nfrom manim import Group, config, logger, tempconfig\nfrom manim.__main__ import main\nfrom manim.renderer.shader import shader_program_cache\n\ntry:\n    from IPython import get_ipython\n    from IPython.core.interactiveshell import InteractiveShell\n    from IPython.core.magic import (\n        Magics,\n        line_cell_magic,\n        magics_class,\n        needs_local_scope,\n    )\n    from IPython.display import Image, Video, display\nexcept ImportError:\n    pass\nelse:\n\n    @magics_class\n    class ManimMagic(Magics):\n        def __init__(self, shell: InteractiveShell) -> None:\n            super().__init__(shell)\n            self.rendered_files = {}\n\n        @needs_local_scope\n        @line_cell_magic\n        def manim(\n            self,\n            line: str,\n            cell: str = None,\n            local_ns: dict[str, Any] = None,\n        ) -> None:\n            r\"\"\"Render Manim scenes contained in IPython cells.\n            Works as a line or cell magic.\n\n            .. hint::\n\n                This line and cell magic works best when used in a JupyterLab\n                environment: while all of the functionality is available for\n                classic Jupyter notebooks as well, it is possible that videos\n                sometimes don't update on repeated execution of the same cell\n                if the scene name stays the same.\n\n                This problem does not occur when using JupyterLab.\n\n            Please refer to `<https://jupyter.org/>`_ for more information about JupyterLab\n            and Jupyter notebooks.\n\n            Usage in line mode::\n\n                %manim [CLI options] MyAwesomeScene\n\n            Usage in cell mode::\n\n                %%manim [CLI options] MyAwesomeScene\n\n                class MyAweseomeScene(Scene):\n                    def construct(self):\n                        ...\n\n            Run ``%manim --help`` and ``%manim render --help`` for possible command line interface options.\n\n            .. note::\n\n                The maximal width of the rendered videos that are displayed in the notebook can be\n                configured via the ``media_width`` configuration option. The default is set to ``25vw``,\n                which is 25% of your current viewport width. To allow the output to become as large\n                as possible, set ``config.media_width = \"100%\"``.\n\n                The ``media_embed`` option will embed the image/video output in the notebook. This is\n                generally undesirable as it makes the notebooks very large, but is required on some\n                platforms (notably Google's CoLab, where it is automatically enabled unless suppressed\n                by ``config.embed = False``) and needed in cases when the notebook (or converted HTML\n                file) will be moved relative to the video locations. Use-cases include building\n                documentation with Sphinx and JupyterBook. See also the :mod:`manim directive for Sphinx\n                <manim.utils.docbuild.manim_directive>`.\n\n            Examples\n            --------\n\n            First make sure to put ``import manim``, or even ``from manim import *``\n            in a cell and evaluate it. Then, a typical Jupyter notebook cell for Manim\n            could look as follows::\n\n                %%manim -v WARNING --disable_caching -qm BannerExample\n\n                config.media_width = \"75%\"\n                config.media_embed = True\n\n                class BannerExample(Scene):\n                    def construct(self):\n                        self.camera.background_color = \"#ece6e2\"\n                        banner_large = ManimBanner(dark_theme=False).scale(0.7)\n                        self.play(banner_large.create())\n                        self.play(banner_large.expand())\n\n            Evaluating this cell will render and display the ``BannerExample`` scene defined in the body of the cell.\n\n            .. note::\n\n                In case you want to hide the red box containing the output progress bar, the ``progress_bar`` config\n                option should be set to ``None``. This can also be done by passing ``--progress_bar None`` as a\n                CLI flag.\n\n            \"\"\"\n            if cell:\n                exec(cell, local_ns)\n\n            args = line.split()\n            if not len(args) or \"-h\" in args or \"--help\" in args or \"--version\" in args:\n                main(args, standalone_mode=False, prog_name=\"manim\")\n                return\n\n            modified_args = self.add_additional_args(args)\n            args = main(modified_args, standalone_mode=False, prog_name=\"manim\")\n            with tempconfig(local_ns.get(\"config\", {})):\n                config.digest_args(args)\n\n                renderer = None\n                if config.renderer == \"opengl\":\n                    # Check if the imported mobjects extend the OpenGLMobject class\n                    # meaning ConvertToOpenGL did its job\n                    if \"OpenGLMobject\" in map(lambda cls: cls.__name__, Group.mro()):\n                        from manim.renderer.opengl_renderer import OpenGLRenderer\n\n                        renderer = OpenGLRenderer()\n                    else:\n                        logger.warning(\n                            \"Renderer must be set to OpenGL in the configuration file \"\n                            \"before importing Manim! Using cairo renderer instead.\",\n                        )\n                        config.renderer = \"cairo\"\n\n                try:\n                    SceneClass = local_ns[config[\"scene_names\"][0]]\n                    scene = SceneClass(renderer=renderer)\n                    scene.render()\n                finally:\n                    # Shader cache becomes invalid as the context is destroyed\n                    shader_program_cache.clear()\n\n                    # Close OpenGL window here instead of waiting for the main thread to\n                    # finish causing the window to stay open and freeze\n                    if renderer is not None and renderer.window is not None:\n                        renderer.window.close()\n\n                if config[\"output_file\"] is None:\n                    logger.info(\"No output file produced\")\n                    return\n\n                local_path = Path(config[\"output_file\"]).relative_to(Path.cwd())\n                tmpfile = (\n                    Path(config[\"media_dir\"])\n                    / \"jupyter\"\n                    / f\"{_generate_file_name()}{local_path.suffix}\"\n                )\n\n                if local_path in self.rendered_files:\n                    self.rendered_files[local_path].unlink()\n                self.rendered_files[local_path] = tmpfile\n                os.makedirs(tmpfile.parent, exist_ok=True)\n                shutil.copy(local_path, tmpfile)\n\n                file_type = mimetypes.guess_type(config[\"output_file\"])[0]\n                embed = config[\"media_embed\"]\n                if embed is None:\n                    # videos need to be embedded when running in google colab.\n                    # do this automatically in case config.media_embed has not been\n                    # set explicitly.\n                    embed = \"google.colab\" in str(get_ipython())\n\n                if file_type.startswith(\"image\"):\n                    result = Image(filename=config[\"output_file\"])\n                else:\n                    result = Video(\n                        tmpfile,\n                        html_attributes=f'controls autoplay loop style=\"max-width: {config[\"media_width\"]};\"',\n                        embed=embed,\n                    )\n\n                display(result)\n\n        def add_additional_args(self, args: list[str]) -> list[str]:\n            additional_args = [\"--jupyter\"]\n            # Use webm to support transparency\n            if \"-t\" in args and \"--format\" not in args:\n                additional_args += [\"--format\", \"webm\"]\n            return additional_args + args[:-1] + [\"\"] + [args[-1]]\n\n\ndef _generate_file_name() -> str:\n    return config[\"scene_names\"][0] + \"@\" + datetime.now().strftime(\"%Y-%m-%d@%H-%M-%S\")\n", "path": "manim/utils/ipython_magic.py"}]}