Skip to content

Commit 7822667

Browse files
committed
Update README.md
1 parent 506def4 commit 7822667

File tree

1 file changed

+1
-28
lines changed

1 file changed

+1
-28
lines changed

README.md

+1-28
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,6 @@ To install use `pip`:
1818
pip install reactpy_jupyter
1919
```
2020

21-
Then, before anything else, do one of the following:
22-
23-
1. At the top of your notebook run
24-
25-
```python
26-
import reactpy_jupyter
27-
```
28-
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-
31-
```python
32-
c.InteractiveShellApp.extensions = [
33-
'reactpy_jupyter'
34-
]
35-
```
36-
3721
## Usage
3822

3923
Once you're done [getting started](#getting-started), you can author and display ReactPy
@@ -58,7 +42,7 @@ the `reactpy_juptyer.widgetize` function. This is useful if you wish to use Reac
5842
with other Jupyter Widgets as in the following example:
5943

6044
```python
61-
ClickCountWidget = reactpy_jupyter.widgetize(ClickCount)
45+
ClickCountWidget = reactpy_jupyter.to_widget(ClickCount)
6246
ipywidgets.Box(
6347
[
6448
ClickCountWidget(),
@@ -67,17 +51,6 @@ ipywidgets.Box(
6751
)
6852
```
6953

70-
Alternatively just wrap an `reactpy` element instance in an `reactpy_jupyter.LayoutWidget`:
71-
72-
```python
73-
ipywidgets.Box(
74-
[
75-
reactpy_jupyter.LayoutWidget(ClickCount()),
76-
reactpy_jupyter.LayoutWidget(ClickCount()),
77-
]
78-
)
79-
```
80-
8154
For a more detailed introduction check out this live demo here:
8255

8356
<a href="https://mybinder.org/v2/gh/reactive-python/reactpy-jupyter/main?filepath=notebooks%2Fintroduction.ipynb">

0 commit comments

Comments
 (0)