Skip to content
New issue

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

Exporting IJulia notebook as .html does not export sliders #71

Open
CorySimon opened this issue Aug 18, 2015 · 6 comments
Open

Exporting IJulia notebook as .html does not export sliders #71

CorySimon opened this issue Aug 18, 2015 · 6 comments

Comments

@CorySimon
Copy link

I would like to export the plot with the slider as an .html to host on my website. Is this possible, or does Interact.jl require the IJulia notebook to be running in the background? Apologies if this is a dumb question, but this would be an awesome feature...

P = linspace(0, 1)
@manipulate for K = .1:.1:10
    plot(x=P, y=M * K*P./(1 + K*P), 
         Geom.line, Scale.y_continuous(maxvalue=1))
end
@shashi
Copy link
Member

shashi commented Sep 16, 2015

This would indeed be an awesome feature, but is no mean feat to accomplish. I wonder why widgets disappear though... @jdfreder help? Is there a way to keep them and show the broken kernel connection icon next to them? It will be nicer than them missing

@jdfreder
Copy link

Hey guys, I've done this a few times in master, over a year ago ipython/ipython#5900 , but the PR went stale because of indecisiveness regarding where the state should be stored. The latest relevant work can be found here: jupyter-widgets/ipywidgets#151

@CorySimon
Copy link
Author

@jdfreder any progress on being able to convert this interactive plot to an .html to host on a website?

@jdfreder
Copy link

jdfreder commented Jun 3, 2016

Hi @CorySimon , the latest version of the notebook and ipywidgets adds a "widgets" dropdown menu to the menu bar. In there you'll find a button for exporting HTML that can be used to embed widgets into static HTML pages.

@CorySimon
Copy link
Author

@jdfreder AWESOME.

When I update the Jupyter Notebook to version 4.2.0, I do see the "widgets" dropdown menu. However, with this update, the widget (slider bar) does not appear using Interact.jl for the example on the github page.

Ubuntu 14.04, Google Chrome, Julia 0.4.5, Pkg.update()'ed

@CorySimon
Copy link
Author

@jdfreder

My goal is to host on my website the interactive plot from Interact.jl here:

With the new Jupyter Notebook, there is a widgets dropdown menu.
dropdown

I first download the notebook as an .html. I then copy and paste the 'Embed Widgets' script into my .html file from this dropdown menu.

I do not see an interactive plot, like I do in the notebook.

Is it possible to export this and host it on my website? Please help!
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants