Skip to content

Commit c7de4c0

Browse files
committed
refactor: update imports to use brainpy.state_based and remove deprecated version notes
1 parent 79d3e24 commit c7de4c0

2 files changed

Lines changed: 3 additions & 33 deletions

File tree

docs_state_based/quickstart/5min-tutorial.ipynb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,11 @@
3131
"metadata": {},
3232
"outputs": [],
3333
"source": [
34-
"import brainpy\n",
34+
"import brainpy.state_based as brainpy\n",
3535
"import brainstate\n",
3636
"import brainunit as u\n",
3737
"import braintools\n",
38-
"import matplotlib.pyplot as plt\n",
39-
"\n",
40-
"# Check version\n",
41-
"print(f\"BrainPy version: {brainpy.__version__}\")"
38+
"import matplotlib.pyplot as plt\n"
4239
]
4340
},
4441
{

docs_version2/index.rst

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -9,29 +9,6 @@ general-purpose Brain Dynamics Programming (BDP).
99
.. _BrainPy: https://github.com/brainpy/BrainPy
1010

1111

12-
13-
.. note::
14-
15-
From September 2025, BrainPy has been upgraded to version 3.x.
16-
To compatible apis within version 2.x. Please change your code:
17-
18-
.. code-block:: python
19-
20-
# Old version (v2.x)
21-
import brainpy as bp
22-
import brainpy.math as bm
23-
24-
to the new version:
25-
26-
27-
.. code-block:: python
28-
29-
# New version (v3.x)
30-
import brainpy.version2 as bp
31-
import brainpy.version2.math as bm
32-
33-
34-
3512
----
3613

3714
Installation
@@ -127,7 +104,7 @@ Learn more
127104

128105
.. card:: :material-regular:`settings;2em` Examples
129106
:class-card: sd-text-black sd-bg-light
130-
:link: https://brainpy-v2.readthedocs.io/projects/examples/
107+
:link: https://brainpy-examples.readthedocs.io
131108

132109
.. grid-item::
133110
:columns: 6 6 6 4
@@ -143,10 +120,6 @@ Learn more
143120
in mind what BrainPy version you are using.
144121

145122

146-
.. note::
147-
``BrainPy>=3.0.0`` is rewritten based on `brainstate <https://github.com/chaobrain/brainstate>`_ since August 2025.
148-
149-
150123

151124
----
152125

0 commit comments

Comments
 (0)