Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 2 additions & 0 deletions build/esbuild/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ const commonExternals = [
'vscode',
'commonjs',
'node:crypto',
'node:fs/promises',
'node:path',
'vscode-jsonrpc', // Used by a few modules, might as well pull this out, instead of duplicating it in separate bundles.
// Ignore telemetry specific packages that are not required.
'applicationinsights-native-metrics',
Expand Down
478 changes: 478 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

26 changes: 25 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,24 @@
"category": "Deepnote",
"icon": "$(plug)"
},
{
"command": "deepnote.newProject",
"title": "New project",
"category": "Deepnote",
"icon": "$(new-file)"
},
{
"command": "deepnote.importNotebook",
"title": "Import notebook",
"category": "Deepnote",
"icon": "$(folder-opened)"
},
{
"command": "deepnote.importJupyterNotebook",
"title": "Import Jupyter notebook",
"category": "Deepnote",
"icon": "$(notebook)"
},
{
"command": "dataScience.ClearCache",
"title": "%jupyter.command.dataScience.clearCache.title%",
Expand Down Expand Up @@ -1853,14 +1871,19 @@
{
"id": "deepnoteExplorer",
"name": "%deepnote.views.explorer.name%",
"when": "workspaceFolderCount != 0",
"iconPath": {
"light": "./resources/light/deepnote-icon.svg",
"dark": "./resources/dark/deepnote-icon.svg"
}
}
]
},
"viewsWelcome": [
{
"view": "deepnoteExplorer",
"contents": "Welcome to Deepnote for VS Code!\nExplore your data with SQL and Python. Build interactive notebooks, collaborate with your team, and share your insights.\n\n\n\n[$(new-file) New Project](command:deepnote.newProject)\n[$(folder-opened) Import Notebook](command:deepnote.importNotebook)"
}
],
"debuggers": [
{
"type": "Python Kernel Debug Adapter",
Expand Down Expand Up @@ -2122,6 +2145,7 @@
"dependencies": {
"@c4312/evt": "^0.1.1",
"@deepnote/blocks": "^1.2.0",
"@deepnote/convert": "^1.1.0",
"@enonic/fnv-plus": "^1.3.0",
"@jupyter-widgets/base": "^6.0.8",
"@jupyter-widgets/controls": "^5.0.9",
Expand Down
4 changes: 4 additions & 0 deletions package.nls.json
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,10 @@
"deepnote.commands.openFile.title": "Open File",
"deepnote.commands.revealInExplorer.title": "Reveal in Explorer",
"deepnote.commands.manageIntegrations.title": "Manage Integrations",
"deepnote.commands.newProject.title": "New Project",
"deepnote.commands.importNotebook.title": "Import Notebook",
"deepnote.commands.importJupyterNotebook.title": "Import Jupyter Notebook",
"deepnote.views.explorer.name": "Explorer",
"deepnote.views.explorer.welcome": "No Deepnote notebooks found in this workspace.",
"deepnote.command.selectNotebook.title": "Select Notebook"
}
10 changes: 7 additions & 3 deletions src/notebooks/deepnote/deepnoteDataConverter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,14 @@ export class DeepnoteDataConverter {
// Outputs are managed by VS Code natively, not stored in the pocket
// Preserve outputs when they exist (including newly produced outputs)
// Only set if not already set to avoid overwriting converter-managed outputs
// Only set if the cell actually has outputs (non-empty array) or if the block originally had outputs
const hadOutputs = cell.metadata?.__hadOutputs;
if (cell.outputs && !block.outputs && (cell.outputs.length > 0 || hadOutputs)) {
block.outputs = this.transformOutputsForDeepnote(cell.outputs);
if (!block.outputs) {
// Set outputs if:
// 1. The cell has non-empty outputs, OR
// 2. The block originally had outputs (even if empty)
if ((cell.outputs && cell.outputs.length > 0) || hadOutputs) {
block.outputs = cell.outputs ? this.transformOutputsForDeepnote(cell.outputs) : [];
}
}

// Clean up internal tracking flags from metadata
Expand Down
Loading