# TensorFlow.jl how to use visualize?

**URL:** <https://discourse.julialang.org/t/tensorflow-jl-how-to-use-visualize/5017>\
**Category:** General Usage\
**Tags:** question, package\
**Created:** [July 22, 2017, 10:00am UTC](https://discourse.julialang.org/t/tensorflow-jl-how-to-use-visualize/5017 "2017-07-22T10:00:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jw3126](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jw3126/32/3086_2.png) [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Post date:** [July 22, 2017, 10:00am UTC](https://discourse.julialang.org/t/tensorflow-jl-how-to-use-visualize/5017/1 "2017-07-22T10:00:54Z")

</div>

I watched the juliacon video on [TensorFlow.jl](https://github.com/malmaud/TensorFlow.jl) and found it quite cool. So I tried to reproduce the examples.  
In the [video](https://youtu.be/MaCf1PtHEJo?t=370) the visualize function is used… If I try to do the same thing on my machine I get an error however:

```julia
could not spawn `tensorboard --logdir=/tmp/tmpdXvsXU --port=6006`: no such file or directory (ENOENT)

Stacktrace:
 [1] _jl_spawn(::String, ::Array{String,1}, ::Ptr{Void}, ::Base.Process, ::Base.DevNullStream, ::Base.PipeEndpoint, ::Ptr{Void}) at ./process.jl:360
 [2] #373 at ./process.jl:512 [inlined]
 [3] setup_stdio(::Base.##373#374{Cmd}, ::Tuple{Base.DevNullStream,Pipe,Base.PipeEndpoint}) at ./process.jl:499
 [4] #spawn#372(::Nullable{Base.ProcessChain}, ::Function, ::Cmd, ::Tuple{Base.DevNullStream,Pipe,Base.PipeEndpoint}) at ./process.jl:511
 [5] spawn(::Cmd, ::Tuple{Base.DevNullStream,Pipe,Base.PipeEndpoint}) at ./process.jl:506
 [6] open(::Cmd, ::String, ::Base.DevNullStream) at ./process.jl:578
 [7] get_tensorboard(::Void) at /home/jan/.julia/v0.6/TensorFlow/src/show.jl:148
 [8] visualize(::TensorFlow.Graph) at /home/jan/.julia/v0.6/TensorFlow/src/show.jl:179
 [9] visualize() at /home/jan/.julia/v0.6/TensorFlow/src/core.jl:250

```

Is this expected? To install TensorFlow I simply did

```julia
Pkg.add("TensorFlow")
Pkg.checkout("TensorFlow")
Pkg.build("TensorFlow")

```

Do I have to install tensorboard manually or something?

---

<div class="post-metadata">

**Author:** ![malmaud](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/malmaud/32/29_2.png) [@malmaud](https://discourse.julialang.org/u/malmaud)\
**Post date:** [July 22, 2017, 2:39pm UTC](https://discourse.julialang.org/t/tensorflow-jl-how-to-use-visualize/5017/2 "2017-07-22T14:39:37Z")

</div>

Hey, thanks for checking out TensorFlow.jl! I really appreciate it.

Can you file an issue on [https://github.com/malmaud/TensorFlow.jl](https://github.com/malmaud/TensorFlow.jl)? The issue is that you do have tensorboard, but it’s not in the system path. I’ll revise TensorFlow.jl to take that possibility into account.

---

<div class="post-metadata">

**Author:** ![jw3126](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jw3126/32/3086_2.png) [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Post date:** [July 22, 2017, 4:07pm UTC](https://discourse.julialang.org/t/tensorflow-jl-how-to-use-visualize/5017/3 "2017-07-22T16:07:20Z")

</div>

Thanks for the quick answer!

---

<div class="post-metadata">

**Author:** ![jw3126](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jw3126/32/3086_2.png) [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Post date:** [July 22, 2017, 6:30pm UTC](https://discourse.julialang.org/t/tensorflow-jl-how-to-use-visualize/5017/4 "2017-07-22T18:30:20Z")

</div>

Can you suggest some workaround until this is fixed?

---

<div class="post-metadata">

**Author:** ![jw3126](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jw3126/32/3086_2.png) [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Post date:** [July 22, 2017, 6:54pm UTC](https://discourse.julialang.org/t/tensorflow-jl-how-to-use-visualize/5017/5 "2017-07-22T18:54:06Z")

</div>

In case other people face the same problem, the following hack works for me:

```nohighlight
path = joinpath(Pkg.dir("Conda"), "deps", "usr", "bin")
if !contains(ENV["PATH"], path)
    ENV["PATH"] = string(ENV["PATH"], ":", path)
end

```
