JUTERJUTERA/JUTERA库内使用javascript

2024-06-26 14:59:02 发布

您现在位置:Python中文网/ 问答频道 /正文

我的真正目标是将两个列表以图形方式关联在一起。在

我想在jupyter/jupyterlab中进行交互。在

在这个库中可以找到一个示例: http://sebastien.drouyer.com/jquery.flowchart-demo/

我的问题是在ipython笔记本中集成Javascript并不容易。在

我找到了一些教程:http://jacobbridges.github.io/post/jupyter-notebook-with-interactive-charts/

如果我能重现这个例子,我就不会试图用流程图库来代替。在

第一个单元格

%%javascript
require.config({
  paths: {
    flowcharts: "https://github.com/sdrdis/jquery.flowchart/blob/master/jquery.flowchart.js",
  },
shim: {
    flowcharts: {
      exports: "FlowCharts",
      deps: ["jquery"]
    },
}
});

^{pr2}$

我也不知道从哪里导入css文件。在

有人能帮我吗?在

谨致问候, 托马斯


Tags: githubcomhttp图形示例目标列表方式