[PYTHON] Hello X3DOM on Jupyter

Jupyter Advent Calendar 2016 Day 10 @ enakai00's article "How to execute kernel code from JavaScript on Jupyter notebook From: //enakai00.hatenablog.com/entry/2016/12/10/141301) ”, I was told that you can execute arbitrary JavaScript within Jupyter.

Let's run Hello, X3DOM!.

Jupyter notebook below: https://gist.github.com/anonymous/8359a7be1499fa9c63ef5eb1af181b9e

from IPython.display import HTML

javascript = '''
<script type='text/javascript' src='http://www.x3dom.org/download/x3dom.js'> </script> 
<link rel='stylesheet' type='text/css' href='http://www.x3dom.org/download/x3dom.css'></link> 
<x3d width='400px' height='300px'>
    <scene>
        <shape>
            <appearance>
                <material diffuseColor='1 0 0'></material>
            </appearance>
            <box></box>
        </shape>
    </scene>
</x3d>  
'''

HTML(javascript) 

スクリーンショット 2016-12-12 22.22.55.png

Hello X3DOM on Jupyter !

Recommended Posts

Hello X3DOM on Jupyter
Golang on jupyter
Jupyter on AWS
Hello World on Django
Install octave_kernel on Jupyter [additional]
Run Jupyter on Ubuntu on Windows
Display PIL images on Jupyter
Smoothly reload modules on jupyter
High charts on Jupyter notebook
View PDF on Jupyter Notebook
Label images on jupyter lab
Hello World (beginners) on Django
Run Jupyter Notebook on windows
Formatting with autopep8 on Jupyter notebook
Use jupyter on AWS GPU instance
Run azure ML on jupyter notebook
Try running Jupyter Notebook on Mac
How to build Hello, World on #Nix
Make Jupyter Notebook a service on CentOS
Try SVM with scikit-learn on Jupyter Notebook
Start jupyter notebook on GPU server (remote server)
You can use Dash on Jupyter jupyter_dash
Display the graph of tensorBoard on jupyter
Clone the github repository on jupyter notebook
GPU check of PC on jupyter notebook
Display histogram / scatter plot on Jupyter Notebook
Build jupyter notebook on remote server (CentOS)
Use vim keybindings on Docker-launched Jupyter Notebook
Run Jupyter notebook on a remote server