Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 11/4/24 #1355

Merged
merged 55 commits into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
358ab32
mitosheet: fix convert to datetime with mixed dtype column
aarondr77 Oct 12, 2024
2f293d6
mito-ai: teach mito-ai about operating inside of jupyter
aarondr77 Oct 15, 2024
5264c24
mito-ai: cleanup
aarondr77 Oct 15, 2024
65a840a
Merge pull request #1340 from mito-ds/mito-ai-knows-about-jupyter
aarondr77 Oct 15, 2024
943892d
Merge pull request #1337 from mito-ds/mixed-dtype-conversion
aarondr77 Oct 16, 2024
339b8d9
mito-ai: render cell toolbar button from example
aarondr77 Oct 17, 2024
cac1398
mito-ai: add explain code button
aarondr77 Oct 17, 2024
6b135ec
mito-ai: cleanup and document
aarondr77 Oct 17, 2024
a697262
Merge pull request #1341 from mito-ds/explain-code-cell
aarondr77 Oct 17, 2024
5ccea5d
mito-ai: fix bug with registering command in UseEffect
aarondr77 Oct 18, 2024
6d4cd9a
Update mito-ai/src/Extensions/AiChat/ChatTaskpane.tsx
aarondr77 Oct 18, 2024
7fd0cc4
mito-ai: style code diffs exploration
aarondr77 Oct 21, 2024
1f1e228
Merge pull request #1342 from mito-ds/dogfood-10-18-24
aarondr77 Oct 21, 2024
a278e68
mito-ai: apply colors to code cell
aarondr77 Oct 21, 2024
811c4b7
mito-ai: conditionally render background color
aarondr77 Oct 21, 2024
5f6268f
mito-ai: create unified diffs algorithm
aarondr77 Oct 22, 2024
e969833
mito-ai: color diffs in cm code cells
aarondr77 Oct 22, 2024
f747762
mito-ai: only highlight the active code cell
aarondr77 Oct 22, 2024
f24b52b
mito-ai: clear code diffs on apply
aarondr77 Oct 22, 2024
5d9aba4
mito-ai: fix bug with diffing empty cells
aarondr77 Oct 23, 2024
916782f
mito-ai: cleanup
aarondr77 Oct 23, 2024
59116b5
mito-ai: update prompt
aarondr77 Oct 24, 2024
972c469
mito-ai: fix code mirror extension crash bug
aarondr77 Oct 24, 2024
10c2bbc
Merge pull request #1343 from mito-ds/code-diff
aarondr77 Oct 24, 2024
a1d09d3
mito-ai: cleanup
aarondr77 Oct 24, 2024
bb177a4
mito-ai: fix dependencies in package.json and yarn.lock
aarondr77 Oct 24, 2024
655355e
mito-ai: fix reject ai code
aarondr77 Oct 25, 2024
3b410e0
Merge pull request #1345 from mito-ds/dogfood-10-25-24
aarondr77 Oct 25, 2024
ad3f999
tests: create mitoai testing structure
aarondr77 Oct 25, 2024
c97b515
tests: build first working mito ai test
aarondr77 Oct 25, 2024
16798e8
mito-ai: fix bug in deny ai generated code + add test
aarondr77 Oct 25, 2024
ba0cfa4
tests: add more tests
aarondr77 Oct 25, 2024
fdceb20
.github: update testing workflow for mito-ai
aarondr77 Oct 25, 2024
f437a1b
tests: add mito-ai to setup scripts
aarondr77 Oct 25, 2024
90bb7a7
.github: add openai key env var
aarondr77 Oct 25, 2024
35b1807
Merge pull request #1346 from mito-ds/mito-ai-testing-init
aarondr77 Oct 25, 2024
599e549
mito-ai: create separate prompt for each type of interaction
aarondr77 Oct 25, 2024
835ee0c
mito-ai: cleanup
aarondr77 Oct 25, 2024
256bdcf
mito-ai: cleanup
aarondr77 Oct 28, 2024
b5e2d37
mito-ai: cleanup
aarondr77 Oct 28, 2024
1005901
.github: run tests on mito-ai directory changes
aarondr77 Oct 28, 2024
139ea86
Merge pull request #1347 from mito-ds/refactor-mito-ai-core-loop
aarondr77 Oct 28, 2024
7b35246
Added check for isLastAiMessage
ngafar Nov 1, 2024
f2b25a4
Merge pull request #1348 from mito-ds/remove-ai-taskpane-btns
ngafar Nov 1, 2024
8f96a9c
Moved mito-ai tests into seperate workflow
ngafar Nov 1, 2024
825f8f1
Merge pull request #1349 from mito-ds/mito-ai-tests
aarondr77 Nov 1, 2024
6d9f937
Updated margin and padding
ngafar Nov 1, 2024
08dcc38
Merge pull request #1350 from mito-ds/ai-taskpane-formatting
aarondr77 Nov 1, 2024
dd9f13a
mito-ai: update font size and line wrap of chat code
aarondr77 Nov 1, 2024
0748089
Added white-space styling for code class
ngafar Nov 1, 2024
0ce4142
mito-ai: add more specific class name
aarondr77 Nov 1, 2024
2d0062a
Merge pull request #1351 from mito-ds/ai-taskpane-formatting-2
aarondr77 Nov 1, 2024
1f7e62b
mito-ai: update openai pinning
aarondr77 Nov 4, 2024
4990f53
mito-ai: fix small chat input bug
aarondr77 Nov 4, 2024
f870c3a
Merge pull request #1352 from mito-ds/fix-small-chat-input-bug
ngafar Nov 4, 2024
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
64 changes: 64 additions & 0 deletions .github/workflows/test-mito-ai.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Test - Mito AI

on:
push:
branches: [ dev ]
paths:
- 'mito-ai/**'
pull_request:
paths:
- 'mito-ai/**'
jobs:
test-mitoai-frontend-jupyterlab:
runs-on: ubuntu-20.04
timeout-minutes: 60
strategy:
matrix:
python-version: ['3.8', '3.10', '3.11']
fail-fast: false

steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: |
mito-ai/setup.py
tests/requirements.txt
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
cache-dependency-path: mito-ai/package-lock.json
- name: Install dependencies
run: |
cd tests
bash mac-setup.sh
- name: Setup JupyterLab
run: |
cd tests
source venv/bin/activate
cd ../mito-ai
jupyter labextension develop . --overwrite
jupyter server extension enable --py mito-ai
- name: Start a server and run tests
run: |
cd tests
source venv/bin/activate
jupyter lab --config jupyter_server_test_config.py &
npm run test:mitoai
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
- name: Upload test-results
uses: actions/upload-artifact@v3
if: failure()
with:
name: mitoai-jupyterlab-playwright-report-${{ matrix.python-version }}
path: tests/playwright-report/
retention-days: 14
2 changes: 1 addition & 1 deletion .github/workflows/test-mitosheet-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ on:
branches: [ dev ]
paths:
- 'mitosheet/**'
- 'tests/**'
pull_request:
paths:
- 'mitosheet/**'
- 'tests/**'

jobs:
test-mitosheet-frontend-jupyterlab:
runs-on: ubuntu-20.04
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
scratch*

# Mac Specific

Expand Down
2 changes: 1 addition & 1 deletion mito-ai/Untitled.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.1"
"version": "3.10.4"
}
},
"nbformat": 4,
Expand Down
1 change: 1 addition & 0 deletions mito-ai/mito-ai/OpenAICompletionHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def post(self):
# TODO: In the future, instead of returning the raw response,
# return a cleaned up version of the response so we can support
# multiple models

self.finish(json.dumps(response_dict))
except Exception as e:
self.set_status(500)
Expand Down
9 changes: 6 additions & 3 deletions mito-ai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"files": [
"lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}",
"style/**/*.{css,js,eot,gif,html,jpg,json,png,svg,woff2,ttf}",
"src/**/*.{ts,tsx}"
"src/**/*.{ts,tsx}",
"schema/*.json"
],
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down Expand Up @@ -63,7 +64,8 @@
"@types/react-dom": "^18.0.10",
"openai": "^4.1.0",
"react": "^18.0.0",
"react-dom": "^18.0.0"
"react-dom": "^18.0.0",
"vscode-diff": "^2.1.1"
},
"devDependencies": {
"@jupyterlab/builder": "^4.0.0",
Expand Down Expand Up @@ -102,7 +104,8 @@
},
"jupyterlab": {
"extension": true,
"outputDir": "mito-ai/labextension"
"outputDir": "mito-ai/labextension",
"schemaDir": "schema"
},
"eslintIgnore": [
"node_modules",
Expand Down
16 changes: 16 additions & 0 deletions mito-ai/schema/plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"jupyter.lab.shortcuts": [],
"title": "mito-ai",
"description": "mito-ai settings.",
"type": "object",
"properties": {},
"additionalProperties": false,
"jupyter.lab.toolbars": {
"Cell": [
{
"name": "explain-code",
"command": "toolbar-button:explain-code"
}
]
}
}
2 changes: 1 addition & 1 deletion mito-ai/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def get_data_files_from_data_files_spec(
packages=find_packages(),
install_requires=[
"jupyterlab>=4.0.0,<5",
"openai",
"openai>=1.0.0"
],
extras_require = {
'deploy': [
Expand Down
1 change: 0 additions & 1 deletion mito-ai/src/Extensions/AiChat/AiChatPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {
JupyterFrontEnd,
JupyterFrontEndPlugin,
} from '@jupyterlab/application';

import { ICommandPalette, WidgetTracker } from '@jupyterlab/apputils';
import { INotebookTracker } from '@jupyterlab/notebook';
import { buildChatWidget } from './ChatWidget';
Expand Down
Loading
Loading