We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
html
js
Because a single html file for a plot is pretty big (1.5-2 MB) we will separate it into html and js.
From tuple_code:
js = viz.load_embed() base = viz._html
What we need to do more with js and base from snippet above:
base
id
After you run the last cell of manee ipynb in tuplecode, you get plot.html and plot.js.
plot.html
plot.js
Then copy plot.html to _plots folder inside _posts in tupleblog.
_plots
_posts
Use include_relative for this:
include_relative
<center>{% include_relative _plots/example_plot.html %}</center>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
How to add interactive lightning-viz plot to a post
Get
html
andjs
of a plotBecause a single html file for a plot is pretty big (1.5-2 MB) we will separate it into
html
andjs
.From tuple_code:
What we need to do more with
js
andbase
from snippet above:id
of obj in base. (see detail in tuplecode/manee/ipynb)js
file (very big) intohtml
file (small).After you run the last cell of manee ipynb in tuplecode, you get
plot.html
andplot.js
.Copy html of plot
Then copy
plot.html
to_plots
folder inside_posts
in tupleblog.Include plot into a post
Use
include_relative
for this:The text was updated successfully, but these errors were encountered: