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
Copy file name to clipboardExpand all lines: README.md
+12-19Lines changed: 12 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,28 +17,26 @@ This project uses [pixi.sh](https://pixi.sh) for dependency management and envir
17
17
### Prerequisites
18
18
19
19
Install pixi.sh:
20
+
20
21
```bash
21
22
curl -fsSL https://pixi.sh/install.sh | bash
22
23
```
23
24
24
25
### Installation
25
26
26
27
1. Clone the repository:
28
+
27
29
```bash
28
30
git clone <repository-url>
29
31
cd jupyter-ai-claude-code
30
32
```
31
33
32
-
2. Install dependencies and set up the environment:
34
+
2. Enter the pixi shell environment:
35
+
33
36
```bash
34
-
pixi install
37
+
pixi shell
35
38
```
36
39
37
-
This will:
38
-
- Install JupyterLab from conda-forge
39
-
- Install Jupyter AI 3.0.0b5 from PyPI
40
-
- Install the package in editable mode
41
-
42
40
## Usage
43
41
44
42
### Start JupyterLab
@@ -59,30 +57,25 @@ This will start JupyterLab with the Jupyter AI extension and Claude Code persona
59
57
#### Continuous Conversation
60
58
61
59
The Claude Code persona now supports continuous conversation, which maintains context across multiple messages in a chat session. This allows Claude to:
60
+
62
61
- Remember previous questions and answers
63
62
- Build upon earlier context in the conversation
64
63
- Provide more coherent multi-turn interactions
65
64
66
65
**Session Management:**
67
66
68
-
The persona automatically manages conversation sessions. Each time you send a message, it's added to the ongoing conversation context. If you want to reset the conversation and start fresh, you can programmatically call:
69
-
70
-
```python
71
-
# From within the ClaudeCodePersona instance
72
-
await persona.reset_conversation()
73
-
```
74
-
75
-
This will clear the conversation history and start a new session with the next message.
67
+
The persona automatically manages conversation sessions. Each time you send a message,
68
+
it's added to the ongoing conversation context.
76
69
77
70
**How it works:**
78
71
79
-
- The first message automatically creates a new `ClaudeSDKClient` session
80
-
- Subsequent messages reuse the same client to maintain conversation context
81
-
- The client persists until you explicitly reset it or the JupyterLab session ends
72
+
- The first message automatically creates a new `ClaudeSDKClient` session.
73
+
- Subsequent messages reuse the same client to maintain conversation context.
74
+
- The client persists until you start a new session in the chat window.
82
75
83
76
### Build the Package
84
77
85
-
The package is automatically installed in editable mode during `pixi install`. To manually build:
78
+
The package is automatically installed in editable mode during `pixi shell`. To manually build:
0 commit comments