|
| 1 | +Project Overview |
| 2 | +---------------- |
| 3 | + |
| 4 | +**Objective**: Develop nteract v2 as a performant and stable desktop notebook application, focusing on fluid user experience and rapid prototyping. |
| 5 | + |
| 6 | +### Key Features |
| 7 | + |
| 8 | +* **Fluid User Experience**: Emphasis on speed and responsiveness, particularly in creating and manipulating notebook cells. |
| 9 | +* **Backend-Managed State**: State management primarily handled by the Rust backend. |
| 10 | +* **Performance Focus**: Leverage Tauri's performance benefits to enhance application efficiency. |
| 11 | + |
| 12 | +Lessons from nteract v1 |
| 13 | +----------------------- |
| 14 | + |
| 15 | +* Transition away from nteract web, content refs, myths, and bundled components. |
| 16 | +* Adopt a one notebook per window approach. |
| 17 | + |
| 18 | +Strategy for nteract v2 |
| 19 | +----------------------- |
| 20 | + |
| 21 | +* Build an integrated application, not a modular toolkit. |
| 22 | +* Offload outputs to a content store for standardization and performance. |
| 23 | +* Emphasize a design that facilitates fluid interactions and rapid prototyping. |
| 24 | +* Switch to Tailwind CSS and/or shadcn/ui for UI development. |
| 25 | + |
| 26 | +Technical Decision: Tauri vs. Electron |
| 27 | +-------------------------------------- |
| 28 | + |
| 29 | +* Preference for Tauri due to its performance benefits and alignment with the project's renewed focus, despite Electron's familiarity and more complete API set. |
| 30 | + |
| 31 | +Phases of Development |
| 32 | +--------------------- |
| 33 | + |
| 34 | +### Initial Phase: Planning and Research |
| 35 | + |
| 36 | +👇🏻 You are here 👇🏾 |
| 37 | + |
| 38 | +* Define the project scope and technical requirements. |
| 39 | +* Research Tauri's capabilities |
| 40 | +* Investigate integration with Jupyter kernels. |
| 41 | +* Draft a detailed design document outlining the desired user experience. |
| 42 | + |
| 43 | +#### Integration and Testing |
| 44 | + |
| 45 | +* Continuous integration of separate backend and frontend components |
| 46 | +* Develop end-to-end tests using a real kernel |
| 47 | + |
| 48 | +#### Deployment and Documentation |
| 49 | + |
| 50 | +* Ongoing preparation for frequent releases with a focus on CI/CD efficiency |
| 51 | +* Continuous development of documentation and user guides |
| 52 | +* Foster community involvement and establish contribution guidelines |
| 53 | + |
| 54 | +### Phase I: Prototype |
| 55 | + |
| 56 | +#### Backend Development (Rust) |
| 57 | + |
| 58 | +* Implement functions for notebook manipulation and interaction with Jupyter kernels. |
| 59 | +* Establish communication protocols with the frontend. |
| 60 | +* Create a notebook backend to keep track of the ongoing document, a running kernel, and establish handlers for document changes |
| 61 | + |
| 62 | +#### Frontend Development |
| 63 | + |
| 64 | +* Design and implement the notebook viewing and editing interface using Tailwind CSS. |
| 65 | +* Focus on creating a immersively iterable notebook for prototyping |
| 66 | +* Rely on the backend to have the source of truth for the notebook state as well as kernel state, only looking to the frontend as the view layer |
| 67 | + |
| 68 | +### Phase II: CRDT |
| 69 | + |
| 70 | +* Integrate CRDT logic for real-time editing and synchronization with the backend. |
| 71 | + |
| 72 | +Risk Management |
| 73 | +--------------- |
| 74 | + |
| 75 | +* Address challenges in adopting new technology (Tauri) and integrating it with existing systems. |
| 76 | +* Ensure a balance between performance focus and maintaining an intuitive and engaging user interface. |
0 commit comments