diff options
author | Phil Hughes <me@iamphill.com> | 2017-03-16 17:04:58 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-03-23 10:52:55 +0000 |
commit | f9ced97a97f5bebec57545fbf611952026bf0d5d (patch) | |
tree | e1a8a44b76d7404c1aca4dfe5ff7e3bb0460650c /app/assets/javascripts | |
parent | 51d111903f069cc56143b144f881b1c87e553c3b (diff) | |
download | gitlab-ce-f9ced97a97f5bebec57545fbf611952026bf0d5d.tar.gz |
Started iPython notebook viewer
Using NotebookLab library
[ci skip]
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r-- | app/assets/javascripts/blob/notebook_viewer.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/app/assets/javascripts/blob/notebook_viewer.js b/app/assets/javascripts/blob/notebook_viewer.js new file mode 100644 index 00000000000..dda137c6603 --- /dev/null +++ b/app/assets/javascripts/blob/notebook_viewer.js @@ -0,0 +1,20 @@ +import Vue from 'vue'; +import NotebookLab from 'vendor/notebooklab'; + +Vue.use(NotebookLab); + +$(() => { + new Vue({ + el: '#js-notebook-viewer', + data() { + return { + json: {}, + }; + }, + template: ` + <div> + <notebook-lab :notebook="json" /> + </div> + `, + }); +}); |