Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove json_fix #5

Merged
merged 1 commit into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions neptyne_kernel/json_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ def json_default(obj: Any) -> str | int | list | float | None:
except ImportError:
from jupyter_client.jsonutil import date_default as jupyter_json_default

if hasattr(obj, "__json__"):
obj = obj.__json__()

return jupyter_json_default(obj)


Expand Down
1 change: 0 additions & 1 deletion neptyne_kernel/requirements-extras.in
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ graphlib
html5lib
isoweek
jaconv
json-fix
mapboxgl
mapclassify
markdown
Expand Down
2 changes: 0 additions & 2 deletions neptyne_kernel/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,6 @@ joblib==1.3.2
# via
# contextily
# scikit-learn
json-fix==0.3.0
# via -r neptyne_kernel/requirements-extras.in
jsonschema==4.5.1
# via
# altair
Expand Down
5 changes: 0 additions & 5 deletions neptyne_kernel/widgets/base_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@
from enum import Enum
from typing import Any, Callable

try:
import json_fix # pylint: disable=unused-import # noqa: F401
except ImportError:
pass

from ..cell_api import CellApiMixin, CellEvent
from ..neptyne_protocol import MIMETypes
from ..util import list_like
Expand Down
2 changes: 0 additions & 2 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,6 @@ joblib==1.3.2
# -r requirements.txt
# contextily
# scikit-learn
json-fix==0.3.0
# via -r neptyne_kernel/requirements-extras.in
jsonschema==4.5.1
# via
# -r requirements.txt
Expand Down
1 change: 0 additions & 1 deletion requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ ipython~=8.3.0
isort
isoweek
jaconv
json-fix
jupyter_client
kaleido
kubernetes_asyncio
Expand Down
2 changes: 0 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,6 @@ jiter==0.5.0
# via anthropic
joblib==1.3.2
# via scikit-learn
json-fix==1.0.0
# via -r requirements.in
jsonschema==4.5.1
# via
# altair
Expand Down
Loading