Instantly share code, notes, and snippets.

Embed
What would you like to do?
Demo of using ThebeLab to run gnuplot kernel
<html>
<head>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<title>Thebe Lab examples</title>
<link rel="stylesheet" type="text/css" href="index.css" />
<!-- Configure and load Thebe !-->
<script type="text/x-thebe-config">
{
bootstrap: true,
binderOptions: {
repo: "ouseful-PR/gnuplot_kernel",
},
kernelOptions: {
name: "gnuplot",
},
}
</script>
<script type="text/javascript" src="https://unpkg.com/thebelab@^0.3.0"></script>
<!-- or to use a local build: -->
<!-- <script type="text/javascript" src="../lib/index.js"></script> -->
</head>
<body>
<h1>Thebe Lab - Gnuplot demo</h1>
<p>Press <tt>Shift-Enter</tt> to execute the following cell. Launching the
computation backend may take a few seconds, and you may need to
re-execute it.</p>
If we wrap an application using metakernel, we can access it via a browser...
<pre data-executable="true" data-language="gnuplot">plot sin(x)</pre>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment