Google Colab中的d3可折叠层次树[Colaboratory]

时间:2019-03-04 15:16:59

标签: d3.js google-colaboratory

按照this帖子中的说明,我可以在桌面浏览器中查看可折叠的d3树。总之,这些是说明:

  1. collapsible_tree.htmlinput_graph_tree.json都复制到执行python的文件夹中,例如在C:/Python37/
  2. 运行python python -m http.server 8080
  3. 转到URL:localhost:8080 / collapsible_tree.html

我想在Google Colab上复制它,但不确定是否可行。我已将两个文件移至root,并尝试了!sudo python -m http.server 8080的变体,但没有任何反应(即代码运行但没有输出)。有办法吗?

0 个答案:

没有答案