test
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
mol
2024-07-06 22:23:31 +08:00
parent 08173d8497
commit 263cb5ef03
1663 changed files with 526884 additions and 0 deletions

View File

@ -0,0 +1,9 @@
# Jupyter for Visual Studio Code
**Notice:** This extension is bundled with Visual Studio Code. It can be disabled but not uninstalled.
## Features
This extension provides the following Jupyter-related features for VS Code:
- Open, edit and save .ipynb files

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

View File

@ -0,0 +1 @@
async function p(t){let o=await t.getRenderer("vscode.markdown-it-renderer");if(!o)throw new Error("Could not load 'vscode.markdown-it-renderer'");o.extendMarkdownIt(a=>{let d=a.renderer.rules.image;a.renderer.rules.image=(e,r,c,i,s)=>{let m=e[r],n=m.attrGet("src"),k=i.outputItem.metadata?.attachments;if(k&&n&&n.startsWith("attachment:")){let w=k[g(n.replace("attachment:",""))];if(w){let I=Object.entries(w);if(I.length){let[f,u]=I[0],h="data:"+f+";base64,"+u;m.attrSet("src",h)}}}return d?d(e,r,c,i,s):s.renderToken(e,r,c)}})}function g(t){try{return decodeURIComponent(t)}catch{return t}}export{p as activate};

View File

@ -0,0 +1 @@
{"name":"ipynb","displayName":"%displayName%","description":"%description%","publisher":"vscode","version":"1.0.0","license":"MIT","icon":"media/icon.png","engines":{"vscode":"^1.57.0"},"enabledApiProposals":["documentPaste","diffContentOptions"],"activationEvents":["onNotebook:jupyter-notebook","onNotebookSerializer:interactive","onNotebookSerializer:repl"],"extensionKind":["workspace","ui"],"main":"./dist/ipynbMain.js","browser":"./dist/browser/ipynbMain.js","capabilities":{"virtualWorkspaces":true,"untrustedWorkspaces":{"supported":true}},"contributes":{"configuration":[{"properties":{"ipynb.pasteImagesAsAttachments.enabled":{"type":"boolean","scope":"resource","markdownDescription":"%ipynb.pasteImagesAsAttachments.enabled%","default":true}}}],"commands":[{"command":"ipynb.newUntitledIpynb","title":"%newUntitledIpynb.title%","shortTitle":"%newUntitledIpynb.shortTitle%","category":"Create"},{"command":"ipynb.openIpynbInNotebookEditor","title":"%openIpynbInNotebookEditor.title%"},{"command":"ipynb.cleanInvalidImageAttachment","title":"%cleanInvalidImageAttachment.title%"},{"command":"notebook.cellOutput.copy","title":"%copyCellOutput.title%","category":"Notebook"},{"command":"notebook.cellOutput.openInTextEditor","title":"%openCellOutput.title%","category":"Notebook"}],"notebooks":[{"type":"jupyter-notebook","displayName":"Jupyter Notebook","selector":[{"filenamePattern":"*.ipynb"}],"priority":"default"}],"notebookRenderer":[{"id":"vscode.markdown-it-cell-attachment-renderer","displayName":"%markdownAttachmentRenderer.displayName%","entrypoint":{"extends":"vscode.markdown-it-renderer","path":"./notebook-out/cellAttachmentRenderer.js"}}],"menus":{"file/newFile":[{"command":"ipynb.newUntitledIpynb","group":"notebook"}],"commandPalette":[{"command":"ipynb.newUntitledIpynb"},{"command":"ipynb.openIpynbInNotebookEditor","when":"false"},{"command":"ipynb.cleanInvalidImageAttachment","when":"false"},{"command":"notebook.cellOutput.copy","when":"notebookCellHasOutputs"},{"command":"notebook.cellOutput.openInTextEditor","when":"false"}],"webview/context":[{"command":"notebook.cellOutput.copy","when":"webviewId == 'notebook.output' && webviewSection == 'image'"},{"command":"notebook.cellOutput.copy","when":"webviewId == 'notebook.output' && webviewSection == 'text'"},{"command":"notebook.cellOutput.openInTextEditor","when":"webviewId == 'notebook.output' && webviewSection == 'text'"}]}},"repository":{"type":"git","url":"https://github.com/microsoft/vscode.git"}}

View File

@ -0,0 +1 @@
{"displayName":".ipynb Support","description":"Provides basic support for opening and reading Jupyter's .ipynb notebook files","ipynb.pasteImagesAsAttachments.enabled":"Enable/disable pasting of images into Markdown cells in ipynb notebook files. Pasted images are inserted as attachments to the cell.","newUntitledIpynb.title":"New Jupyter Notebook","newUntitledIpynb.shortTitle":"Jupyter Notebook","openIpynbInNotebookEditor.title":"Open IPYNB File In Notebook Editor","cleanInvalidImageAttachment.title":"Clean Invalid Image Attachment Reference","copyCellOutput.title":"Copy Cell Output","openCellOutput.title":"Open Cell Output in Text Editor","markdownAttachmentRenderer.displayName":{"message":"Markdown-It ipynb Cell Attachment renderer","comment":["Markdown-It is a product name and should not be translated"]}}