Observable Embed
a WordPress shortcode for embedding Observable data viz
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/andybrowncompassion/observable-embed/archive/refs/heads/master.zipA WordPress plugin for embedding Observable notebooks
Usage
[observable-embed notebook='url to notebook.js' cell='optional cell name']
note: this shortcode may be used multiple times on a page/post. Specified cells share a common runtime/library so they can interact. Also implemented responsive width functionality so cells respond to resizing of their containers. Skip the cell attribute to display the entire notebook (named cells only)
Demo
See it in action here:
Installation
Download the entire repository as a zip (green code button on the top right), then install it through Wordpress admin interface by uploading the zip file.
License
The observable-embed WordPress plugin is licensed under the GPL v2 or later.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
A copy of the license is included in the root of the plugin’s directory. The file is named LICENSE.
Licensing
The observable-embed WordPress plugin is licensed under the GPL v2 or later; however, if you opt to use third-party code that is not compatible with v2, then you may need to switch to using code that is GPL v3 compatible.
Credits
Plugin boilerplate from DevinVinson/WordPress-Plugin-Boilerplate
Releases
1 release.
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.