Skip to content

Commit 8ca2ade

Browse files
committed
Update packages
1 parent 5be9f67 commit 8ca2ade

File tree

5 files changed

+1371
-2271
lines changed

5 files changed

+1371
-2271
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ target/
7878
# Jupyter Notebook
7979
.ipynb_checkpoints
8080

81+
# Jupyter AI chats
82+
*.chat
83+
8184
# IPython
8285
profile_default/
8386
ipython_config.py

README.md

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,28 +17,26 @@ This project uses [pixi.sh](https://pixi.sh) for dependency management and envir
1717
### Prerequisites
1818

1919
Install pixi.sh:
20+
2021
```bash
2122
curl -fsSL https://pixi.sh/install.sh | bash
2223
```
2324

2425
### Installation
2526

2627
1. Clone the repository:
28+
2729
```bash
2830
git clone <repository-url>
2931
cd jupyter-ai-claude-code
3032
```
3133

32-
2. Install dependencies and set up the environment:
34+
2. Enter the pixi shell environment:
35+
3336
```bash
34-
pixi install
37+
pixi shell
3538
```
3639

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-
4240
## Usage
4341

4442
### Start JupyterLab
@@ -59,30 +57,25 @@ This will start JupyterLab with the Jupyter AI extension and Claude Code persona
5957
#### Continuous Conversation
6058

6159
The Claude Code persona now supports continuous conversation, which maintains context across multiple messages in a chat session. This allows Claude to:
60+
6261
- Remember previous questions and answers
6362
- Build upon earlier context in the conversation
6463
- Provide more coherent multi-turn interactions
6564

6665
**Session Management:**
6766

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.
7669

7770
**How it works:**
7871

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.
8275

8376
### Build the Package
8477

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:
8679

8780
```bash
8881
pixi run python -m build

0 commit comments

Comments
 (0)