1 Star 0 Fork 0

tlm629/vue-ipynb

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
tlm629-tlm629 tlm629 ipynb 6b0cda7 4年前
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

vue-ipynb

一个Demo,利用 jsvine/notebookjs 在VUE中展示 ipynb 文件,并作代码高亮。 Demo to view a .ipynb (python notebook) file with VUE.

How to Use

Install

npm install marked ansi_up dompurify jsdom
npm install prismjs 
npm install babel-plugin-prismjs 

Config

Config .babelrc file of your VUE project

{
    "plugins": [
        [
            "prismjs",
            {
                "languages": ["html", "css", "javascript", "python"],
                "plugins": ["line-numbers"]
            }
        ]
    ]
}

Copy files

Copy this files to project:

  • prism.css
  • notebook.js

Run and View .ipynb file

npm install
npm run serve

view: http://localhost:8080/

Thanks

Many thanks to the following users for catching bugs, fixing typos, and proposing useful features: https://github.com/jsvine/notebookjs https://prismjs.com/

空文件

简介

Demo to view a .ipynb (python notebook) file with VUE. 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/tlm629/vue-ipynb.git
git@gitee.com:tlm629/vue-ipynb.git
tlm629
vue-ipynb
vue-ipynb
main

搜索帮助