feat: 增加ipynb渲染

This commit is contained in:
camera-2018
2023-04-24 11:26:28 +08:00
parent 09cb1716d1
commit 43a6e8d116
27 changed files with 11696 additions and 40 deletions

View File

@@ -0,0 +1,19 @@
<template>
<div ref="NotebookFragment" class="notebook-fragment" />
</template>
<script>
import { Notebook } from "../utils/index";
export default {
name: "RenderJupyterNotebook",
props: {
notebook: { required: true, type: Object },
},
async mounted() {
const notebook = new Notebook(this.notebook, false);
const fragment = await notebook.render();
this.$refs.NotebookFragment.appendChild(fragment);
},
};
</script>