Skip to content

Instantly share code, notes, and snippets.

@psychemedia
Created December 6, 2018 17:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save psychemedia/d74942b1e92708327ce05302d0d4e3c5 to your computer and use it in GitHub Desktop.
Save psychemedia/d74942b1e92708327ce05302d0d4e3c5 to your computer and use it in GitHub Desktop.
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