-
Notifications
You must be signed in to change notification settings - Fork 0
/
juniper.html
55 lines (45 loc) · 1.58 KB
/
juniper.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!DOCTYPE html>
<html lang="en">
<head>
<title>Juniper Demo</title>
<meta charset="utf-8">
<!-- some CodeMirror themes -->
<link rel="stylesheet" href="https://codemirror.net/theme/monokai.css" />
<link rel="stylesheet" href="https://s3-us-west-2.amazonaws.com/s.cdpn.io/316871/summerfruit.css" />
<link rel="stylesheet" href="https://s3-us-west-2.amazonaws.com/s.cdpn.io/316871/fairyfloss.css" />
<!-- demo styles -->
<style>
.container { max-width: 600px; margin: 5rem auto; }
.container > * { margin-bottom: 4rem; }
</style>
</head>
<body>
<div class="container">
<pre data-executable>
print('This is a demo of Juniper.')
print('Hello JupyterCon!')
</pre>
<pre data-executable data-theme="fairyfloss">
# because it's a Jupyter environment, you can
# use the built-in IPython functions
from IPython.core.display import display, HTML
html = "<img src='https://i.imgur.com/A2g43BD.jpg'/>"
display(HTML(html))
# you can also just output stuff
def some_function(some_arg):
return some_arg
some_function([1, 2, 3, 4])
</pre>
Visit <a href="https://github.com/ines/juniper">https://github.com/ines/juniper</a> for more!
</div>
<script src="assets/juniper.min.js"></script>
<script>
new Juniper({
repo: 'ines/spacy-io-binder'
});
// listen to status updates
document.addEventListener('juniper', ev =>
console.log('Status:', ev.detail.status))
</script>
</body>
</html>