Michael Lively
05ae151b7d
return object, change placeholder
2022-08-25 15:33:50 -07:00
Michael Lively
16f842ea76
fix for attachment naming within notebook metadata
2022-08-25 15:04:56 -07:00
Michael Lively
614c7dd5f4
fix conflict demo
2022-08-24 10:37:37 -07:00
Michael Lively
02cb45c3cb
demo merge conflict
2022-08-23 16:10:56 -07:00
Michael Lively
ae1167bd94
refactor with updated metadata properties
2022-08-23 16:09:30 -07:00
Matt Bierner
f00fde0f24
Mark that notebook metadata is readonly ( #158960 )
...
Mark that metadata is `readonly`
Fixes #158955
We freeze the object here 0656d21d11/src/vs/workbench/api/common/extHostNotebookDocument.ts (L70)
2022-08-23 14:52:00 -07:00
Matt Bierner
b72671133b
Fix any types and extract method ( #158967 )
...
`currentCell` and `notebookUri` are currently any types, which hides type errors. To fix this and clean up the code, I've extracted a new `getCellFromCellDocument` method
2022-08-23 13:57:44 -07:00
Michael Lively
6f7189b7bb
refactor metadata into own fxn
2022-08-18 11:58:44 -07:00
Michael Lively
880fda6ed9
fix pasting image into newly created cell bug
2022-08-17 12:17:39 -07:00
Michael Lively
38477bf5f5
change dir of cellAttachmentRenderer ( #157671 )
...
* change dir of cellAttachmentRenderer
* add new directories to `.vscodeignore`
* add the .js directories back in...
* hopefully now understanding `.vscodeignore`
2022-08-09 20:00:24 +02:00
Michael Lively
9225503c85
Support for pasting images into markdown notebook cells ( #156847 )
...
* dataflow support for updated metadata
* update cellAttachmentRenderer.ts to reflect metadata being a getter() inside MarkupCell
* document paste additions
* update condition to re-render cells, now includes metadata changes
* paste API working, debugging command added
* paste working with metadata. needs numbering, and cleaning upon delete
* paste screenshot works fully
* remove debugging command. Cleaning.
* notebook cells now re-render upon metadata changes
* changed name validity checking, remove unneeded function
* use _document for cell data, use snippet choice, dto fix
* return subscription, for loop, uri fix, alter metadata in-place, better snippet
* metadata fix, object.equals, fix cellAttRenderer metadata call
* added comment with source of encodeBase64
* gate mkdn image paste behind experimental setting
2022-08-08 13:57:49 -07:00
Matt Bierner
68912bd844
Use 'import type' for '@jupyterlab/nbformat' ( #157153 )
...
This is a type only dev dep so we should prevent referencing it as a value
2022-08-04 23:46:53 +02:00
Michael Lively
61e8687fa3
Notebook Cells re-render upon changes to metadata ( #156917 )
...
* dataflow support for updated metadata
* update cellAttachmentRenderer.ts to reflect metadata being a getter() inside MarkupCell
* update condition to re-render cells, now includes metadata changes
* notebook cells now re-render upon metadata changes
* fix missing metadata update
Co-authored-by: Peng Lyu <penn.lv@gmail.com>
2022-08-03 09:46:12 -07:00
Michael Lively
6fbee10cc1
more checking for undefined objects, fixed bug casuing markdown renderer to entirely crash
2022-07-28 11:53:51 -07:00
Michael Lively
eaf321d50d
formatting
2022-07-20 16:12:32 -07:00
Michael Lively
63142212a1
remove md-it dependency, added undefined check to attachments
2022-07-20 16:10:54 -07:00
Michael Lively
1b59f566bb
rendering of attachment images complete via tokens
2022-07-20 12:23:37 -07:00
Michael Lively
735ead82f5
added attachment and metadata support back in... rebasing is scary
2022-07-20 12:23:37 -07:00
Michael Lively
0fa857c9a1
okay now things are actually fresh and working
2022-07-20 12:23:24 -07:00
Johannes
0656d21d11
auto-fixed prefer-const violation
2022-06-08 17:49:21 +02:00
Matt Bierner
c9c5990e38
Adopt notebookWorkspaceEdit proposal internally ( #149778 )
...
This switches us to use the new `notebookWorkspaceEdit` proposal instead of `notebookEditorEdit`
2022-05-17 18:51:25 -07:00
Johannes
b1faab40de
adopt tests to new notebook change event
2022-03-29 11:58:54 +02:00
rebornix
157cba093c
fix #140673 .
2022-03-15 17:01:33 -07:00
rebornix
e632f91b35
fix #143966 .
2022-03-02 16:55:55 -08:00
rebornix
998ee04a72
update nbformat typings
2022-03-01 12:59:58 -08:00
rebornix
3567a2f2bc
Show codelens to ipynb json to open in notebook editor
2022-02-18 14:54:40 -08:00
rebornix
4b17d05668
re #142872 . Contribute ipynb notebook to File -> New when no Jupyter extension enabled.
2022-02-16 11:42:45 -08:00
rebornix
8e3c41760e
re #142872 . Default language to python.
2022-02-16 11:42:45 -08:00
rebornix
7f99539fe7
re #142872 . Ignore whitespace only content error.
2022-02-15 17:45:09 -08:00
Johannes Rieken
7ccb868835
make sure to use .eslintignore when running yarn eslint, this will ensure that cli failure and editor squiggles are always equal
2022-02-02 12:37:29 +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
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