feat: Tauri notebook app — text cells, plotting, save/load, factorial fix#1
Open
msollami wants to merge 1 commit intostblake:mainfrom
Open
feat: Tauri notebook app — text cells, plotting, save/load, factorial fix#1msollami wants to merge 1 commit intostblake:mainfrom
msollami wants to merge 1 commit intostblake:mainfrom
Conversation
- New notebook-tauri/ desktop app (Tauri v2 + React + TypeScript)
- Code cells with CodeMirror 6 syntax highlighting and KaTeX output
- Text/Markdown cells: editable on click, Shift+Enter to commit
- Plot[expr, {x, min, max}] renders an interactive Recharts line chart
- Save / Open notebooks as .pico JSON files (native file dialogs)
- Pre-loaded hello world notebook with examples on first launch
- Rust backend spawns picocas via Python PTY wrapper for correct
line-buffering; async Tauri commands bridge via oneshot channels
- Fix factorial for n > 20: use double for n <= 170, Overflow beyond
ceb564d to
6291779
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
notebook-tauri/desktop app (Tauri v2 + React + TypeScript) — a Mathematica-style notebook UI for PicoCAS# H1,## H2,**bold**,*italic*Plot[expr, {x, min, max}]renders an interactive line chart (Recharts).picoJSON files via native file dialogspicocasthrough a Python PTY wrapper so picocas sees a TTY and line-buffers output correctly; async Tauri IPC commands bridge to the blocking I/O thread viatokio::sync::oneshotchannelssrc/arithmetic.c):n!forn > 20now evaluates usingdouble(up ton = 170), returningOverflowbeyond that, instead of a parse errorTest plan
makein repo root to build picocaspicocasandpty_wrap.pytonotebook-tauri/src-tauri/resources/(see README)cd notebook-tauri && npm install && npm run tauri dev2 + 3,10!,Plot[x^2, {x, -2, 2}]in the hello world notebook.pico, close, reopen