cling/www/jupyter.html

56 lines
1.6 KiB
HTML
Raw Normal View History

2016-02-23 20:16:10 +03:00
<html>
<head>
2016-07-20 16:35:07 +03:00
<title>Cling</title>
<script data-main="scripts/cling" src="scripts/require.js"></script>
<link rel="stylesheet" href="style/import.css">
2016-02-23 20:16:10 +03:00
</head>
2016-07-20 16:35:07 +03:00
<body onload="selectMenu('jupyter')">
<iframe seamless src="header.html" class="header" id="iheader"></iframe>
2016-02-23 20:16:10 +03:00
<div id="breadcrumb"></div>
<div id="content">
<div id="main">
<!-- insert the page content here -->
2016-02-25 17:46:30 +03:00
<h3> Jupyter Kernel </h3>
2016-02-23 20:16:10 +03:00
<p>Cling is now integrated with the <a href = "http://jupyter.org/" target = "_blank"> Jupyter</a> technology through the Jupyter kernel. You can take advantage of creating a Jupyter notebook on top of runtime interpretation, you have runtime visualisation!
</p>
2016-02-25 17:46:30 +03:00
<img id = "jupyterscreenshot"
src="JupyterScreenshot.png" alt="Cling Jupyter Screenshot" style=""/>
2017-04-05 12:31:39 +03:00
<p>See also the [example notebook in cling's github repo](https://github.com/root-project/cling/blob/master/tools/Jupyter/kernel/cling.ipynb).</p>
2016-02-23 20:16:10 +03:00
<h3>Prerequisites</h3>
<ul>
<li>
ipykernel &ge; 4.0
2016-02-23 20:16:10 +03:00
</li>
</ul>
<h3>Install </h3>
To install the kernel with sources in src/tools/cling:
2016-02-25 17:46:30 +03:00
<pre><code>
2016-02-23 20:16:10 +03:00
export PATH=/path/to/cling/bin:$PATH
cd src/tools/cling/tools/Jupyter/kernel/
pip install -e .
# or: pip3 install -e .
# register the kernelspec:
jupyter-kernelspec install [--user] cling
# or: jupyter kernelspec install [--user] cling
2016-02-25 17:46:30 +03:00
</code></pre>
2016-02-23 20:16:10 +03:00
To run it:
2016-02-25 17:46:30 +03:00
<pre><code>
2016-02-23 20:16:10 +03:00
jupyter-notebook
# or: jupyter notebook
2016-02-25 17:46:30 +03:00
</code></pre>
2016-02-23 20:16:10 +03:00
</div>
</div>
2016-07-20 18:16:21 +03:00
<iframe seamless class="footer" src="footer.html"></iframe>
2016-02-23 20:16:10 +03:00
</body>
</html>