From 7822667eb4de0ee18685e1f2bf1a7254bf258788 Mon Sep 17 00:00:00 2001 From: Ryan Morshead Date: Fri, 26 May 2023 14:20:05 -0600 Subject: [PATCH] Update README.md --- README.md | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/README.md b/README.md index 0b0db7b..d4d433e 100644 --- a/README.md +++ b/README.md @@ -18,22 +18,6 @@ To install use `pip`: pip install reactpy_jupyter ``` -Then, before anything else, do one of the following: - -1. At the top of your notebook run - - ```python - import reactpy_jupyter - ``` - -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): - - ```python - c.InteractiveShellApp.extensions = [ - 'reactpy_jupyter' - ] - ``` - ## Usage 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 with other Jupyter Widgets as in the following example: ```python -ClickCountWidget = reactpy_jupyter.widgetize(ClickCount) +ClickCountWidget = reactpy_jupyter.to_widget(ClickCount) ipywidgets.Box( [ ClickCountWidget(), @@ -67,17 +51,6 @@ ipywidgets.Box( ) ``` -Alternatively just wrap an `reactpy` element instance in an `reactpy_jupyter.LayoutWidget`: - -```python -ipywidgets.Box( - [ - reactpy_jupyter.LayoutWidget(ClickCount()), - reactpy_jupyter.LayoutWidget(ClickCount()), - ] -) -``` - For a more detailed introduction check out this live demo here: