Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
baea596
DOC-5712 Python SCE API and general intro
andy-stark-redis Sep 9, 2025
6d22eed
DOC-5713 node-redis SCE connect info
andy-stark-redis Sep 9, 2025
73354b0
DOC-5716 Lettuce SCE connection details
andy-stark-redis Sep 10, 2025
254b6cb
DOC-5714 Go SCE connection details
andy-stark-redis Sep 10, 2025
5e049f9
DOC-5711 remove endpoint type details
andy-stark-redis Sep 10, 2025
e5b1dfb
DOC-5711 a few fixes
andy-stark-redis Sep 10, 2025
fab053c
DOC-5711 added production usage sections
andy-stark-redis Sep 10, 2025
66399dd
Apply suggestions from code review
andy-stark-redis Sep 11, 2025
7fbc30c
DOC-5711 applied PR feedback
andy-stark-redis Sep 11, 2025
2025606
DOC-5711 details of how to enable SCE on RS
andy-stark-redis Sep 15, 2025
1b3360f
DOC-5712 updated name and tidied description
andy-stark-redis Oct 10, 2025
009d893
DOC-5712 fixed links
andy-stark-redis Oct 10, 2025
9ea72df
DOC-5712 updated Go config details
andy-stark-redis Oct 14, 2025
cce50c9
DOC-5713 updated node-redis config example
andy-stark-redis Oct 14, 2025
6e59690
DOC-5712 update for new Python API
andy-stark-redis Oct 14, 2025
6acf4f6
DOC-5716 updated Lettuce API in example
andy-stark-redis Oct 14, 2025
3787298
DOC-5711 slight changes to examples following tests
andy-stark-redis Oct 15, 2025
50b4189
DOC-5831 added initial version of tool to convert example files to no…
andy-stark-redis Oct 17, 2025
753a9a2
DOC-5831 C# features and general updates
andy-stark-redis Oct 20, 2025
eb06aae
DOC-5831 updated spec (2nd opinion from ChatGPT instead of Claude)
andy-stark-redis Oct 21, 2025
467e25a
DOC-5831 updated script for better Java behaviour
andy-stark-redis Oct 21, 2025
d065b4c
DOC-5831 fixed C# redundant closing brace issue
andy-stark-redis Oct 22, 2025
e783070
DOC-5840 add C#-sync index/query notebook
andy-stark-redis Oct 22, 2025
7b8a356
DOC-5842 modify index/query page for notebook content
andy-stark-redis Oct 22, 2025
131ba7f
DOC-5842 updated code for Jedis index/query example
andy-stark-redis Oct 22, 2025
3d11b9c
DOC-5841 updated node-redis index/query page for notebook
andy-stark-redis Oct 24, 2025
cd2a868
DOC-5839 added JS source file for index/query examples
andy-stark-redis Oct 24, 2025
0a9dede
Document 'search-on-oom' configuration parameter (#2301)
lerman25 Oct 27, 2025
0118d6c
DEV: cherrypick scorer changes from feat-ros-8.4 branch (#2303)
dwdougherty Oct 27, 2025
ebacef0
Update hash field expiration details for Redis 8.0 (#2280)
LiorKogan Oct 27, 2025
9a5e3fa
Merge pull request #2273 from redis/DOC-5831-ipynb-conv-tool
andy-stark-redis Oct 28, 2025
d7eb4af
Merge pull request #2120 from redis/DOC-5712-python-seamless-section
andy-stark-redis Oct 28, 2025
f9c96b1
K8s: yellow submarine maint 4 (#2308)
kaitlynmichael Oct 28, 2025
f38c3f9
Add LangCache Search strategies example
rokn Oct 29, 2025
49111fc
DOC-5839 removed JS notebook link
andy-stark-redis Oct 29, 2025
ba1758d
Merge pull request #2295 from redis/DOC-5839-add-query-notebooks
andy-stark-redis Oct 29, 2025
63f06ed
Fix redis insight enable TLS options (#2304)
tommy-couzens Oct 29, 2025
fefa51f
Apply suggestions from code review
cmilesb Oct 29, 2025
6c8a1db
Update content/develop/ai/langcache/api-examples.md
cmilesb Oct 29, 2025
4394b28
Merge pull request #2316 from rokn/main
cmilesb Oct 29, 2025
045b4f2
k8s api docs 8.0.2-2
github-actions[bot] Oct 29, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
94 changes: 94 additions & 0 deletions build/jupyterize/QUICKSTART.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
# Jupyterize - Quick Start Guide

## Installation

```bash
pip install nbformat
```

## Basic Usage

```bash
# Convert a file (creates example.ipynb)
python build/jupyterize/jupyterize.py example.py

# Specify output location
python build/jupyterize/jupyterize.py example.py -o notebooks/example.ipynb

# Enable verbose logging
python build/jupyterize/jupyterize.py example.py -v
```

## What It Does

Converts code example files → Jupyter notebooks (`.ipynb`)

**Automatic:**
- ✅ Detects language from file extension
- ✅ Selects appropriate Jupyter kernel
- ✅ Excludes `EXAMPLE:` and `BINDER_ID` markers
- ✅ Includes code in `HIDE_START`/`HIDE_END` blocks
- ✅ Excludes code in `REMOVE_START`/`REMOVE_END` blocks
- ✅ Creates separate cells for each `STEP_START`/`STEP_END` block

## Supported Languages

| Extension | Language | Kernel |
|-----------|------------|--------------|
| `.py` | Python | python3 |
| `.js` | JavaScript | javascript |
| `.go` | Go | gophernotes |
| `.cs` | C# | csharp |
| `.java` | Java | java |
| `.php` | PHP | php |
| `.rs` | Rust | rust |

## Input File Format

```python
# EXAMPLE: example_id
# BINDER_ID optional-binder-id
import redis

# STEP_START connect
r = redis.Redis()
# STEP_END

# STEP_START set_get
r.set('foo', 'bar')
r.get('foo')
# STEP_END
```

## Output Structure

Creates a Jupyter notebook with:
- **Preamble cell** - Code before first `STEP_START`
- **Step cells** - Each `STEP_START`/`STEP_END` block
- **Kernel metadata** - Automatically set based on language
- **Step metadata** - Step names stored in cell metadata

## Common Issues

**"Unsupported file extension"**
→ Use a supported extension (.py, .js, .go, .cs, .java, .php, .rs)

**"File must start with EXAMPLE: marker"**
→ Add `# EXAMPLE: <id>` (or `//` for JS/Go/etc.) as first line

**"Input file not found"**
→ Check file path is correct

## Testing

```bash
# Run automated tests
python build/jupyterize/test_jupyterize.py
```

## More Information

- **User Guide**: `build/jupyterize/README.md`
- **Technical Spec**: `build/jupyterize/SPECIFICATION.md`
- **Implementation**: `build/jupyterize/IMPLEMENTATION.md`

Loading