Skip to content

Commit 2867e2c

Browse files
authored
Add link to binderhub environment for Python client example (#1734)
* Add link to binderhub environment for Python client example
1 parent afc088e commit 2867e2c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

content/develop/clients/redis-py/_index.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ pip install redis[hiredis]
4848

4949
Connect to localhost on port 6379, set a value in Redis, and retrieve it. All responses are returned as bytes in Python. To receive decoded strings, set `decode_responses=True`. For more connection options, see [these examples](https://redis.readthedocs.io/en/stable/examples.html).
5050

51+
{{< note >}}
52+
53+
You can try this code out in a [Jupyter notebook on Binder](https://redis.io/binder/v2/gh/redis/binder-launchers/6bbed3da294e8de5a8c2ad99abf883731a50d4dd?urlpath=%2Fdoc%2Ftree%2Fdemo.ipynb).
54+
55+
{{< /note >}}
56+
5157
```python
5258
r = redis.Redis(host='localhost', port=6379, decode_responses=True)
5359
```
@@ -76,8 +82,6 @@ r.hgetall('user-session:123')
7682
# {'surname': 'Smith', 'name': 'John', 'company': 'Redis', 'age': '29'}
7783
```
7884

79-
80-
8185
## More information
8286

8387
The [`redis-py`](https://redis.readthedocs.io/en/stable/index.html) website

0 commit comments

Comments
 (0)