facets是Google开源的数据可视化工具。首页:https://pair-code.github.io/facets/。
一、相关依赖库
1、macOS:10.14.5
2、python:2.7.2
3、bazel:0.23.0(必须是0.23.0)https://github.com/bazelbuild/bazel/releases/tag/0.23.0,下载:bazel-0.23.0-installer-darwin-x86_64.sh
4、xcode:10.2.1
5、protobuf:3.8.0,安装方法:https://my.oschina.net/u/2391658/blog/3064621
二、编译过程:
首先要保证已上依赖都已正确安装。
1、clone代码到本地:https://github.com/PAIR-code/facets,并cd到facets根目录
2、在facets顶层目录执行:bazel build facets:facets_jupyter。如果需要在jupyter notebook中使用,请参考:https://github.com/PAIR-code/facets
3、等待编译完成。编译完毕后,会在生成bazel-genfiles/facets目录下生成:facets-jupyter.html