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
@@ -15,50 +15,50 @@ Check out some live examples by clicking the badge below:
15
15
To install use `pip`:
16
16
17
17
```
18
-
pip install idom_jupyter
18
+
pip install reactpy_jupyter
19
19
```
20
20
21
21
Then, before anything else, do one of the following:
22
22
23
23
1. At the top of your notebook run
24
24
25
25
```python
26
-
importidom_jupyter
26
+
importreactpy_jupyter
27
27
```
28
28
29
-
2. Register `idom_jupyter` as a permanant IPython extension in [your config file](https://ipython.readthedocs.io/en/stable/config/intro.html#introduction-to-ipython-configuration):
29
+
2. Register `reactpy_jupyter` as a permanant IPython extension in [your config file](https://ipython.readthedocs.io/en/stable/config/intro.html#introduction-to-ipython-configuration):
30
30
31
31
```python
32
32
c.InteractiveShellApp.extensions = [
33
-
'idom_jupyter'
33
+
'reactpy_jupyter'
34
34
]
35
35
```
36
36
37
37
## Usage
38
38
39
-
Once you're done [getting started](#getting-started), you can author and display IDOM
39
+
Once you're done [getting started](#getting-started), you can author and display ReactPy
40
40
layouts natively in your Jupyter Notebook:
41
41
42
42
```python
43
-
importidom
43
+
importreactpy
44
44
45
-
@idom.component
45
+
@reactpy.component
46
46
defClickCount():
47
-
count, set_count =idom.hooks.use_state(0)
48
-
returnidom.html.button(
47
+
count, set_count =reactpy.hooks.use_state(0)
48
+
returnreactpy.html.button(
49
49
{"onClick": lambdaevent: set_count(count +1)},
50
50
[f"Click count: {count}"],
51
51
)
52
52
53
53
ClickCount()
54
54
```
55
55
56
-
You can also turn an `idom` element constructor into one that returns an `ipywidget` with
57
-
the `idom_juptyer.widgetize` function. This is useful if you wish to use IDOM in combination
56
+
You can also turn an `reactpy` element constructor into one that returns an `ipywidget` with
57
+
the `reactpy_juptyer.widgetize` function. This is useful if you wish to use ReactPy in combination
58
58
with other Jupyter Widgets as in the following example:
To release a new version of idom-client-jupyter on NPM, first register for an NPM account [here](https://www.npmjs.com/), then log in with `yarn login`. Then:
18
+
To release a new version of reactpy-client-jupyter on NPM, first register for an NPM account [here](https://www.npmjs.com/), then log in with `yarn login`. Then:
19
19
20
20
1. Update `js/package.json` with the new npm package version
21
21
2. Build and publish the npm package inside the `js/` directory:
@@ -29,14 +29,14 @@ To release a new version of idom-client-jupyter on NPM, first register for an NP
29
29
30
30
## Python release
31
31
32
-
To release a new version of idom_jupyter on PyPI, first make sure that the `build` package is installed: `pip install build`.
32
+
To release a new version of reactpy_jupyter on PyPI, first make sure that the `build` package is installed: `pip install build`.
33
33
34
-
1. Update `idom_jupyter/_version.py`:
34
+
1. Update `reactpy_jupyter/_version.py`:
35
35
- Update `__version__`
36
36
- Update `NPM_PACKAGE_RANGE` if necessary
37
37
2. Commit changes to `_version.py` and tag the release
0 commit comments