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

[WIP] Backport 8.2: Python 3.13 support #3319

Draft
wants to merge 20 commits into
base: release/8.2
Choose a base branch
from
Draft
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Backport #3061
  • Loading branch information
JCGoran committed Jan 24, 2025
commit 8fb7527768a49c42e9d18f01357bbb905d75d2cb
3 changes: 1 addition & 2 deletions docs/docs_requirements.txt
Original file line number Diff line number Diff line change
@@ -4,8 +4,7 @@ jupyter
nbconvert
recommonmark
matplotlib
# bokeh 3 seems to break docs notebooks
bokeh<3
bokeh
# do not check import of next line
ipython
plotnine
3 changes: 1 addition & 2 deletions nrn_requirements.txt
Original file line number Diff line number Diff line change
@@ -2,8 +2,7 @@ wheel
setuptools<=70.3.0
scikit-build
matplotlib
# bokeh 3 seems to break docs notebooks
bokeh<3
bokeh
ipython
cython
packaging
10 changes: 10 additions & 0 deletions share/lib/python/neuron/__init__.py
Original file line number Diff line number Diff line change
@@ -1751,3 +1751,13 @@ def _mview_html_tree(hlist, inside_mechanisms_in_use=0):
if _get_ipython() is not None:
html_formatter = _get_ipython().display_formatter.formatters["text/html"]
html_formatter.for_type(hoc.HocObject, _hocobj_html)

# in case Bokeh is installed, register a serialization function for hoc.Vector
try:
from bokeh.core.serialization import Serializer

Serializer.register(
h.Vector, lambda obj, serializer: [serializer.encode(item) for item in obj]
)
except ImportError:
pass
Loading