sagemathinc / cocalc

CoCalc: Collaborative Calculation in the Cloud
https://CoCalc.com
Other
1.17k stars 216 forks source link

make it possible for people to discover how to use TensorBoard in CoCalc #2570

Open williamstein opened 6 years ago

williamstein commented 6 years ago

At a very bare minimum, make it so when they type

tensorboard

in a terminal, it prints in big letters:

** Please see https://github.com/sagemathinc/cocalc/wiki/TensorBoard

then runs tensorboard with all the same options.

Better would be to change the URL that it prints out to the one at the above wiki page involving the project_id.

Even better would be to have a new file editor type called ".tensor-board" (say), which starts the server automatically, shows the output in an iframe (with link to open in another tab), and has an input field to specify the log directory where tensorflow is running. It should also have a link to a tutorial.

haraldschilly commented 6 years ago

I deployed a simple wrapper script /ext/bin/tensorboard to intercept the tensorboard command. Output without and with arguments:

~/build/smc-ansible$ tensorboard
When starting TensorBord, you need to at least specify the log directory:
tensorboard --logdir=/tmp/tensorflow/
~/build/smc-ansible$ tensorboard --logdir=/tmp/tensorflow

********************************************************************************
*             To access TensorBoard, open up this URL in a new tab             *
*     https://cocalc.com/14eed217-2d3c-4975-a381-b69edcb40e0e/server/6006/     *
********************************************************************************

TensorBoard 0.4.0rc3 at http://project-14eed217-2d3c-4975-a381-b69edcb40e0e:6006 (Press CTRL+C to quit)

The project id comes from the $COCALC_PROJECT_ID env variable.


big :+1: to the *.tensorboard file idea with an iframe...