Commit graph

53 commits

Author SHA1 Message Date
Rob Lourens e9ca473f62 Change jupyter language name
to make it more clear that it is for raw JSON, not a notebook
2021-11-17 11:42:42 -08:00
Johannes Rieken 09c9d4c293
use enabledApiProposals instead of wildcard property, also update compilation units to only include d.ts-files that are needed, https://github.com/microsoft/vscode/issues/131165 2021-11-12 11:05:57 +01:00
Johannes Rieken a4d426a1c2
split vscode.proposed.d.ts into a file per proposal, https://github.com/microsoft/vscode/issues/131165 2021-11-12 09:48:17 +01:00
Johannes Rieken 68e819043c
use tsconfig.json#include for vscode.d.ts and vscode.proposed.d.ts, enables to remove most ref.d.ts-files 2021-11-09 15:53:35 +01:00
Johannes Rieken 9254a8cd27
move vscode.d.ts and vscode.proposed.d.ts into src/vscode-dts-folder, https://github.com/microsoft/vscode/issues/131165 2021-11-09 15:00:03 +01:00
Rob Lourens 3df135c388 Fix jupyter version number, #136544 2021-11-05 14:50:10 -07:00
Rob Lourens 29c5f2d394 Show an error when opening an old unsupported jupyter format
Fix #136544
2021-11-05 14:06:39 -07:00
Rob Lourens a14ebdfec4 Remove inputCollapsed and outputCollapsed metadata, make them view properties
Fix #125274
2021-11-03 17:22:07 -07:00
Don Jayamanne 79a3586d6c
Add cell_ids for ipynb with nbformat >= 4.5 (#134835) 2021-10-12 09:35:05 -07:00
Don Jayamanne fd910caaf2 Support nbformat 4.5 2021-09-24 13:16:03 -07:00
Don Jayamanne 217e74508d add new line 2021-09-24 12:48:03 -07:00
Don Jayamanne 0bf3b221ca Fix unnecessary changes 2021-09-24 12:45:03 -07:00
Don Jayamanne 3e10e0c49b oops 2021-09-24 10:51:16 -07:00
Don Jayamanne 2f43876783 Ensure nb cell source uses LF instead of CRLF 2021-09-24 10:35:22 -07:00
Don Jayamanne 245fffbce1 Misc 2021-09-21 10:17:33 -07:00
Don Jayamanne 68ba13d07c Remove window keyword from serializer 2021-09-20 09:49:00 -07:00
Don Jayamanne 192e689be1 Fixes to image serializations 2021-09-16 16:27:44 -07:00
Don Jayamanne 1eb4ff560b Fixes to image serialization 2021-09-16 15:59:41 -07:00
Don Jayamanne c962433c68 Remove old API 2021-09-07 13:04:03 -07:00
Don Jayamanne 55af133ac4 Udpates 2021-09-07 09:40:55 -07:00
David Anthoff 426d60625c Add language_info to setKernelSpec 2021-09-03 14:17:27 -07:00
David Anthoff 4f7a2ddf75 Add setKernelSpecAndLanguageInfo to ipynb ext 2021-09-03 13:17:09 -07:00
Sandeep Somavarapu 961c2e353d
remove web extension kind in builtin extensions 2021-09-01 15:09:21 +02:00
Matt Bierner b2bbd76e80
Fix writing kernelspec
For #130602

I think we need to write it into metadata section instead of the top level
2021-08-25 13:27:02 -07:00
Matt Bierner d082058d44
Add API for setting kernelspec in ipynb files (#131219)
* Add API for setting kernelspec in ipynb files

Fixes #130602

This adds a new API to the built-in ipynb extension that lets other extension set the kernelspec metadata on a notebook file

* Temporarily skip the notebook editor tests

We need the new webview content to be published before these can run

* Use `custom`  instead of top level property
2021-08-24 18:06:53 -07:00
Don Jayamanne 7bbd66c2d2 Fixes with tests 2021-08-24 17:17:48 -07:00
Don Jayamanne 31abc3784e Revert "Merge pull request #131592 from DonJayamanne/revertPerfFixes2"
This reverts commit 52baabff07, reversing
changes made to 6e930fb6d4.
2021-08-24 17:16:44 -07:00
Don Jayamanne c397afa3bd Revert "Merge pull request #131035 from DonJayamanne/issue129370"
This reverts commit b23486ef7a, reversing
changes made to 9e0732389b.
2021-08-24 16:27:10 -07:00
Don Jayamanne 23cfb0b997 Fixes 2021-08-19 12:23:01 -07:00
Don Jayamanne 6cbf300b65 Fixes 2021-08-19 12:22:08 -07:00
Don Jayamanne 9347bc5c24 More perf fixes after review 2021-08-19 12:20:39 -07:00
Don Jayamanne 09f68d545d Optimize indentation detection 2021-08-17 14:51:53 -07:00
Don Jayamanne 0882f1e571 Perf improvements to the ipynb serializer 2021-08-17 12:52:59 -07:00
Rob Lourens accf5ae359 Add Jupyter language with JSON syntax highlighting
#128495
2021-08-06 15:51:29 -07:00
Rob Lourens 1dae051c56 Change exportNotebook API to return string 2021-08-05 17:14:47 -07:00
Rob Lourens 2a933e4505 Add ipynb extension API to invoke the serializer.
So the jupyter extension can implement custom Export functionality, and can dump an unsaved notebook
#128495
2021-08-05 12:14:08 -07:00
Rob Lourens 190a89dd1b Port unit tests from vscode-jupyter to ipynb extension
#129446
2021-08-03 11:19:22 -07:00
Rob Lourens 9539f015b1 Split up ipynb serializer file 2021-08-02 19:16:20 -07:00
Rob Lourens 7caab9b3bc Serializer cleanup 2021-08-02 18:58:07 -07:00
Don Jayamanne e8192ca6e3 Temp: swtich image rendering pref from svg to png 2021-07-29 11:44:08 -07:00
Rob Lourens 282dd872e2 Fix #129502.
Builtin extensions are stricter and require "web" set for web extensions
2021-07-27 16:00:09 -07:00
Joyce Er adf904df67 ipynb: fix readme 2021-07-27 13:54:19 -07:00
Rob Lourens 26625e8fb3 Fix incorrect buffer slices 2021-07-26 11:39:49 -07:00
Don Jayamanne 754b1defb0 Fix save error 2021-07-23 17:10:22 -07:00
Don Jayamanne 7f43ac34a1 re-use text encoder 2021-07-23 17:10:22 -07:00
Don Jayamanne 739cc8974f Fix ipynb serializer 2021-07-23 17:10:20 -07:00
Joyce Er 4e5d793a78 ipynb extension need not handle NotebookDocument and NotebookCell
Co-authored-by: rebornix <penn.lv@gmail.com>
2021-07-23 17:07:17 -07:00
Peng Lyu 4148736349
Migrate webview notebook editor backup to builtin serializer (#129211)
* Migrate webview notebook editor backup to builtin serializer

* update extension kind.

* discard webview backup once it is opened in notebook editor.
2021-07-23 16:25:37 -07:00
Rob Lourens 437f5b7559 ipynb: Prefer "workspace" to"ui"
and "web" is inferred from the browser entrypoint
2021-07-23 09:16:09 -07:00
Rob Lourens 2bc4f8f94b Simplify TextDecoder call 2021-07-21 15:18:04 -07:00