()
| 6 | * Creates welcome cells for new or empty notebooks |
| 7 | */ |
| 8 | export const createWelcomeCells = (): PythonCell[] => [ |
| 9 | // // Welcome markdown cell |
| 10 | // { |
| 11 | // id: createId(), |
| 12 | // type: 'markdown', |
| 13 | // code: `# Welcome to DataKit Notebooks |
| 14 | |
| 15 | // DataKit Notebooks provide a environment for data analysis and visualization right in your browser. |
| 16 | |
| 17 | // ### Getting Started |
| 18 | // 1. Use the buttons below cells to add new **Code** or **Text** cells |
| 19 | // 3. Press **⌘+Enter** (Mac) or **Ctrl+Enter** (Windows) to execute code cells |
| 20 | // 4. Access your data through the integrated SQL interface |
| 21 | // `, |
| 22 | // output: [], |
| 23 | // executionCount: null, |
| 24 | // isExecuting: false, |
| 25 | // isEditing: false, // Start in preview mode to show the rendered content |
| 26 | // createdAt: new Date(), |
| 27 | // updatedAt: new Date(), |
| 28 | // }, |
| 29 | // // Initial code cell |
| 30 | // { |
| 31 | // id: createId(), |
| 32 | // type: 'code', |
| 33 | // code: `# Welcome to DataKit Python environment! |
| 34 | // import pandas as pd |
| 35 | // import numpy as np |
| 36 | // import matplotlib.pyplot as plt |
| 37 | |
| 38 | // # Your data analysis starts here |
| 39 | // print("DataKit Notebooks ready!") |
| 40 | // print(f"Python environment loaded with pandas {pd.__version__}") |
| 41 | |
| 42 | // # Example: Create a simple dataset |
| 43 | // data = { |
| 44 | // 'x': range(1, 11), |
| 45 | // 'y': [i**2 for i in range(1, 11)] |
| 46 | // } |
| 47 | // df = pd.DataFrame(data) |
| 48 | // print("\\nSample data created:") |
| 49 | // df.head()`, |
| 50 | // output: [], |
| 51 | // executionCount: null, |
| 52 | // isExecuting: false, |
| 53 | // createdAt: new Date(), |
| 54 | // updatedAt: new Date(), |
| 55 | // }, |
| 56 | ]; |
no outgoing calls
no test coverage detected