Closed pkese closed 1 month ago
I'm trying to load a JS library (in javascript kernel) following documentation https://github.com/dotnet/interactive/blob/main/docs/javascript-overview.md#loading-dependencies but nothing works.
Here's what I tried:
MarkdownIt = await import('https://cdn.jsdelivr.net/npm/markdown-it@14.1.0/+esm'); console.log(MarkdownIt);
(prints empty object: {})
configuredRequire = (require.config({ paths: { markdownIt: 'https://cdn.jsdelivr.net/npm/markdown-it@14.1.0/dist/markdown-it.min.js', }, }) || require); configuredRequire(['markdownIt'], markdownIt => { console.log(markdownIt); });
(nothing happens)
Which version of .NET Interactive are you using? (In a notebook, run the #!about magic command. ):
#!about
NET Interactive © 2020 Microsoft Corporation Version: 1.0.522904+cdfa48b2ea1a27dfe0f545c42a34fd3ec7119074 Library version: 1.0.0-beta.24229.4+cdfa48b2ea1a27dfe0f545c42a34fd3ec7119074 Build date: 2024-04-29T22:23:22.0000000Z
If applicable, add screenshots to help explain your problem.
Also it would be nice if the documentation explained how to load javascript files (or modules) from local disk.
Describe the bug
I'm trying to load a JS library (in javascript kernel) following documentation
https://github.com/dotnet/interactive/blob/main/docs/javascript-overview.md#loading-dependencies
but nothing works.
Here's what I tried:
(prints empty object: {})
(nothing happens)
Please complete the following:
Which version of .NET Interactive are you using? (In a notebook, run the
#!about
magic command. ):Screenshots
If applicable, add screenshots to help explain your problem.