Skip to content

Commit

Permalink
Remove json_fix (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadeo authored Nov 12, 2024
1 parent 224ad85 commit 9e31640
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 13 deletions.
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

0 comments on commit 9e31640

Please sign in to comment.