thebe icon indicating copy to clipboard operation
thebe copied to clipboard

Add option to change the location of require.js

Open xr4dsh opened this issue 2 years ago • 1 comments

Context

At the moment there is only an option to change the URL for mathjax and it would be awesome if the URL of require.js could also be changed in the options instead of just replacing the URL in the minified file.

The current URL is: https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js

Proposal

For mathjax the option looks like this:

let config = {
mountActivateWidget: true,
mountStatusWidget: true,
useJupyterLite: true,
...
mathjaxUrl: "<url for mathjax.js>",

};
window.thebe.bootstrap(config);

Just adding the option requirejsUrl: "<url>", would be great.

Tasks and updates

No response

xr4dsh avatar Jan 01 '24 22:01 xr4dsh

Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Welcome to the EBP community! :tada:

welcome[bot] avatar Jan 01 '24 22:01 welcome[bot]