You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to run %load_ext jupyter_ai inside a Jupyter notebook with Python 3.7, I see an error that TypedDict is not available in the typing module
/opt/conda/lib/python3.7/site-packages/jupyter_ai/init.py in
1 from ._version import version
----> 2 from .extension import AiExtension
3 from .engine import GPT3ModelEngine
4
5 def _jupyter_labextension_paths():
/opt/conda/lib/python3.7/site-packages/jupyter_ai/extension.py in
3 from importlib_metadata import entry_points
4 import inspect
----> 5 from .engine import BaseModelEngine
6
7 class AiExtension(ExtensionApp):
/opt/conda/lib/python3.7/site-packages/jupyter_ai/engine.py in
1 from abc import abstractmethod, ABC, ABCMeta
----> 2 from typing import Dict, TypedDict, Literal, List
3 import openai
4 from traitlets.config import LoggingConfigurable, Unicode
5 from .task_manager import DescribeTaskResponse
ImportError: cannot import name 'TypedDict' from 'typing' (/opt/conda/lib/python3.7/typing.py)
Operating System and version: Amazon Linux 2 (Linux default 4.14.311-233.529.amzn2.x86_64 Improve development setup #1 SMP Thu Mar 23 09:54:12 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux)
Browser and version: Firefox ESR 102.10esr
JupyterLab version: 3.6.1
The text was updated successfully, but these errors were encountered:
Description
When I try to run
%load_ext jupyter_ai
inside a Jupyter notebook with Python 3.7, I see an error thatTypedDict
is not available in thetyping
module/opt/conda/lib/python3.7/site-packages/jupyter_ai/init.py in
1 from ._version import version
----> 2 from .extension import AiExtension
3 from .engine import GPT3ModelEngine
4
5 def _jupyter_labextension_paths():
/opt/conda/lib/python3.7/site-packages/jupyter_ai/extension.py in
3 from importlib_metadata import entry_points
4 import inspect
----> 5 from .engine import BaseModelEngine
6
7 class AiExtension(ExtensionApp):
/opt/conda/lib/python3.7/site-packages/jupyter_ai/engine.py in
1 from abc import abstractmethod, ABC, ABCMeta
----> 2 from typing import Dict, TypedDict, Literal, List
3 import openai
4 from traitlets.config import LoggingConfigurable, Unicode
5 from .task_manager import DescribeTaskResponse
ImportError: cannot import name 'TypedDict' from 'typing' (/opt/conda/lib/python3.7/typing.py)
The final code in the stacktrace is here:
jupyter-ai/packages/jupyter-ai/jupyter_ai/engine.py
Line 2 in 088e480
Context
The text was updated successfully, but these errors were encountered: