Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

How do jupyter notebook be embeded in html ? #235

Open
saliormoon opened this issue Nov 8, 2016 · 11 comments
Open

How do jupyter notebook be embeded in html ? #235

saliormoon opened this issue Nov 8, 2016 · 11 comments

Comments

@saliormoon
Copy link

I want to use jupyter-js-notebook to write and run codes, can anyone give me any suggestions about how to do this? High appreciation.

@blink1073
Copy link
Member

Hi @saliormoon, we have moved this development to JupyterLab. We have an example here.

@saliormoon
Copy link
Author

ok, thank you very much.

@saliormoon
Copy link
Author

saliormoon commented Nov 8, 2016

Yeah, jupyter notebook can load js or css after installed. But now I have a html and I want to use jupyter notebook in this html to achieve the goal that one can write and run codes in the html.

@blink1073
Copy link
Member

Hi @saliormoon, is your intent to use a custom version of the Jupyter Notebook in another application, or to output html into a standard Jupyter Notebook? If it is the latter, you can use the %%html magic provided by the default python kernel.

@saliormoon
Copy link
Author

saliormoon commented Nov 9, 2016

Thank you, @blink1073. Yeah, I want to use a custom version of the Jupyter Notebook in another application, like html. There is a html page, and I want to embedded Jupyter Notebook in it to write and run my own codes and return the results in the html, just like http://139.196.209.143/try/plugin.php.

@blink1073
Copy link
Member

Great, then the example linked above and the %%html magic should do what you want.

@saliormoon
Copy link
Author

saliormoon commented Nov 9, 2016

Ok, thank you much. And is there any example of %%html magic?

@blink1073
Copy link
Member

Here is an example (note that it prints to the JavaScript console of the browser.

screen shot 2016-11-10 at 9 32 18 am

@saliormoon
Copy link
Author

Ok, thanks very much, @blink1073 .

@aoxiangcao
Copy link

hi,i'm doing the same thing just like you @saliormoon , i want to use jupyter in my web application, just like kaggle did. https://www.kaggle.com/artsiomrylau/d/ludobenistant/hr-analytics/human-resources-analytics-notebook so ,what i should do? thanks a lot @blink1073

@blink1073
Copy link
Member

Hi @aoxiangcao, this example is still the best place to start.

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

No branches or pull requests

3 participants