├── .gitignore ├── CHANGELOG.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── config └── rollup.config.js ├── docs ├── ContributingAgreement.md ├── Development.md ├── GettingStarted.md ├── LibraryInterface.md ├── NotebookAPI-Internal.md ├── NotebookAPI-Unsupported.md ├── NotebookAPI.md ├── NotebookLoadingPhases.md ├── ServerSideRendering.md └── Troubleshooting.md ├── examples ├── basic.html ├── borders.html ├── dimensions.html ├── expr.html ├── manipulate.html ├── ssr.html └── url.html ├── package.json ├── src └── main.js ├── website ├── README.md ├── core │ └── Footer.js ├── i18n │ └── en.json ├── package.json ├── pages │ └── en │ │ ├── examples.js │ │ ├── index.js │ │ └── users.js ├── sidebars.json ├── siteConfig.js ├── static │ ├── css │ │ └── custom.css │ ├── fonts │ │ ├── SourceSansPro-Italic.ttf │ │ ├── SourceSansPro-Regular.ttf │ │ ├── SourceSansPro-Semibold.ttf │ │ └── SourceSansPro-SemiboldItalic.ttf │ └── img │ │ ├── background.svg │ │ ├── favicon.ico │ │ ├── hero.png │ │ ├── icon.svg │ │ ├── scriptable-control.svg │ │ └── seamless-embedding.svg ├── wl.js └── yarn.lock └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- 1 | dist/ 2 | examples/dist/ 3 | node_modules/ 4 | website/build/ 5 | 6 | .idea/ 7 | .vscode/ 8 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## 0.3 2 | 3 | * Embedding of external notebooks at a given URL (`{url: ...}`) or with a given `Notebook` expression (`{expr: ...}`) 4 | * New option `showBorder` to control whether to show a border around the embedded notebook 5 | * Officially dropped support for IE11 6 | * Add a default export, but encourage named imports 7 | 8 | ## 0.2.2 9 | 10 | * Pass through extra data from the initial server call to the cloud JS code, for better forward-compatibility 11 | 12 | ## 0.2.1 13 | 14 | * Fix issues with `useShadowDOM` when there are existing notebook-related style definitions on the page 15 | 16 | ## 0.2.0 17 | 18 | * New option `useShadowDOM` for better encapsulation of styling (still experimental and off by default) 19 | 20 | ## 0.1.5 21 | 22 | * First official release 23 | * Change the default for `allowInteract` from `false` to `true` 24 | * Improve documentation 25 | * Add website, built with [Docusaurus](https://docusaurus.io) 26 | 27 | ## 0.1.4 28 | 29 | * First proper release 30 | 31 | ## 0.1.0 32 | 33 | * Initial release 34 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to Wolfram® 2 | 3 | Thank you for taking the time to contribute to the [Wolfram Research](https://github.com/wolframresearch) repos on GitHub. 4 | 5 | ## Licensing of Contributions 6 | 7 | By contributing to Wolfram, you agree and affirm that: 8 | 9 | > Wolfram may release your contribution under the terms of the [MIT license](https://opensource.org/licenses/MIT); and 10 | 11 | > You have read and agreed to the [Developer Certificate of Origin](http://developercertificate.org/), version 1.1 or later. 12 | 13 | Please see [LICENSE](LICENSE) for licensing conditions pertaining 14 | to individual repositories. 15 | 16 | 17 | ## Bug reports 18 | 19 | ### Security Bugs 20 | 21 | Please **DO NOT** file a public issue regarding a security issue. 22 | Rather, send your report privately to security@wolfram.com. Security 23 | reports are appreciated and we will credit you for it. We do not offer 24 | a security bounty, but the forecast in your neighborhood will be cloudy 25 | with a chance of Wolfram schwag! 26 | 27 | ### General Bugs 28 | 29 | Please use the repository issues page to submit general bug issues. 30 | 31 | Please do not duplicate issues. 32 | 33 | Please do send a complete and well-written report to us. Note: **the 34 | thoroughness of your report will positively correlate to our willingness 35 | and ability to address it**. 36 | 37 | When reporting issues, always include: 38 | 39 | * Your version of *Mathematica*® or the Wolfram Language. 40 | * Your version of the Wolfram Cloud. 41 | * Your operating system. 42 | * Your web browser, including version number. 43 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2018 Wolfram Research Inc. 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of 4 | this software and associated documentation files (the "Software"), to deal in 5 | the Software without restriction, including without limitation the rights to 6 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 7 | the Software, and to permit persons to whom the Software is furnished to do so, 8 | subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 15 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 16 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 17 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 18 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 19 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # wolfram-notebook-embedder 2 | 3 | A library to embed [Wolfram Cloud](https://www.wolframcloud.com/) notebooks on websites. It does *not* use an `