what-if-tool icon indicating copy to clipboard operation
what-if-tool copied to clipboard

Can I build a TB plugin from this repo to replace the plugin in TB

Open mengban opened this issue 5 years ago • 4 comments

If I can, is there any instruction? I did't found anything about this in the repo

mengban avatar Dec 21 '19 02:12 mengban

Hi @jameswex I have read development.md, and follow the instruction. But after run:bazel run wit_tensorboard/pip_package:build_pip_package, the result listed below, and I can't find /tmp/wit-pip directory. My OS is macOs 10.15.1: python 2.7 tensorflow: tf-nightly

name@XX:~/myrepo/what-if-tool$ bazel run wit_tensorboard/pip_package:build_pip_package INFO: Analyzed target //wit_tensorboard/pip_package:build_pip_package (0 packages loaded, 0 targets configured). INFO: Found 1 target... Target //wit_tensorboard/pip_package:build_pip_package up-to-date: bazel-bin/wit_tensorboard/pip_package/build_pip_package INFO: Elapsed time: 4.430s, Critical Path: 0.02s INFO: 0 processes. INFO: Build completed successfully, 1 total action INFO: Build completed successfully, 1 total action

  • command -v virtualenv
  • command -v npm

mengban avatar Dec 21 '19 14:12 mengban

Hi @jameswex . I read the script build_pip_package.sh carefully again and find sth may be wrong in my PC. I did some changes like this:
RUNFILES="/data00/home/my ccount/.cache/bazel/_bazel_myaccount/b85cc74e3bccef80ecfa2c6ec638b8dc/execroot/"

plugin_runfile_dir="${RUNFILES}/ai_google_pair_wit" cp "$plugin_runfile_dir/bazel-out/k8-fastbuild/bin/wit_tensorboard/pip_package/build_pip_package.runfiles/ai_google_pair_wit/wit_dashboard/wit_tb_bin.html " wit_tensorboard/static I think some path maybe wrong in my machine according to the script, but I don't know why. I just installed wit-tensorboard by pip after changed the build_pip_package.sh as above.

mengban avatar Dec 22 '19 03:12 mengban

Hi @jameswex I have read development.md, and follow the instruction. But after run:bazel run wit_tensorboard/pip_package:build_pip_package, the result listed below, and I can't find /tmp/wit-pip directory. My OS is macOs 10.15.1: python 2.7 tensorflow: tf-nightly

name@XX:~/myrepo/what-if-tool$ bazel run wit_tensorboard/pip_package:build_pip_package INFO: Analyzed target //wit_tensorboard/pip_package:build_pip_package (0 packages loaded, 0 targets configured). INFO: Found 1 target... Target //wit_tensorboard/pip_package:build_pip_package up-to-date: bazel-bin/wit_tensorboard/pip_package/build_pip_package INFO: Elapsed time: 4.430s, Critical Path: 0.02s INFO: 0 processes. INFO: Build completed successfully, 1 total action INFO: Build completed successfully, 1 total action

  • command -v virtualenv
  • command -v npm

sorry the OS is debian 8 not MacOS.

mengban avatar Dec 22 '19 03:12 mengban

We're still in the process of having the what-if tool show up in Tensorboard through this new code repo as a TensorBoard dynamic plugin. But, until that is complete, the best way to update the What-If Tool used in TensorBoard is to just git clone the TensorBoard repository and update the WIT code directly in the plugins/interactive_inference directory and rebuild Tensorboard from that code.

jameswex avatar Dec 22 '19 17:12 jameswex