# Revise.jl not working for jupyter server on LSF based cluster

**URL:** https://discourse.julialang.org/t/revise-jl-not-working-for-jupyter-server-on-lsf-based-cluster/23768
**Category:** General Usage
**Created:** [May 2, 2019, 9:38am UTC](https://discourse.julialang.org/t/revise-jl-not-working-for-jupyter-server-on-lsf-based-cluster/23768 "2019-05-02T09:38:12Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![fgerick](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fgerick/32/13228_2.png) [@fgerick](https://discourse.julialang.org/u/fgerick)
#### Post date: [May 2, 2019, 9:38am UTC](https://discourse.julialang.org/t/revise-jl-not-working-for-jupyter-server-on-lsf-based-cluster/23768/1 "2019-05-02T09:38:12Z")

</div>

Hi,  
I’m regularly running a notebook server on an LSF based linux cluster. However, I can’t seem to get Revise to work. Any code changes have no impact on the running session, even with manually running `revise()`. Is this expected or do I have to add some flags to the submitted job? Has anyone encountered something similar? I couldn’t find anything. The debugging revise logger doesn’t show any “actions” when revising.

```julia
Julia Version 1.1.0
Commit 80516ca202 (2019-01-21 21:24 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Xeon(R) CPU E3-1284L v4 @ 2.90GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, broadwell)

```

`[295af30f] Revise v2.1.2`

Thanks!

---

<div class="post-metadata">

### Author: ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)
#### Post date: [May 2, 2019, 10:41am UTC](https://discourse.julialang.org/t/revise-jl-not-working-for-jupyter-server-on-lsf-based-cluster/23768/2 "2019-05-02T10:41:04Z")

</div>

What filesystem are you using? Does it support inotify?

---

<div class="post-metadata">

### Author: ![fgerick](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fgerick/32/13228_2.png) [@fgerick](https://discourse.julialang.org/u/fgerick)
#### Post date: [May 2, 2019, 10:50am UTC](https://discourse.julialang.org/t/revise-jl-not-working-for-jupyter-server-on-lsf-based-cluster/23768/3 "2019-05-02T10:50:55Z")

</div>

How do I check this?

---

<div class="post-metadata">

### Author: ![tim.holy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tim.holy/32/52_2.png) [@tim.holy](https://discourse.julialang.org/u/tim.holy)
#### Post date: [May 2, 2019, 10:54am UTC](https://discourse.julialang.org/t/revise-jl-not-working-for-jupyter-server-on-lsf-based-cluster/23768/4 "2019-05-02T10:54:50Z")

</div>

Check whether [Configuration · Revise.jl](https://timholy.github.io/Revise.jl/dev/config/#Polling-and-NFS-mounted-code-directories:-JULIA_REVISE_POLL-1) fixes the problem.

Bonus points for checking the debug logs!

---

<div class="post-metadata">

### Author: ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)
#### Post date: [May 2, 2019, 10:59am UTC](https://discourse.julialang.org/t/revise-jl-not-working-for-jupyter-server-on-lsf-based-cluster/23768/5 "2019-05-02T10:59:22Z")

</div>

From the Linux command line

```nohighlight
mount

```

should display all mounted filesystems. Then you can look up this information for a particular filesystem.

---

<div class="post-metadata">

### Author: ![fgerick](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fgerick/32/13228_2.png) [@fgerick](https://discourse.julialang.org/u/fgerick)
#### Post date: [May 2, 2019, 11:37am UTC](https://discourse.julialang.org/t/revise-jl-not-working-for-jupyter-server-on-lsf-based-cluster/23768/6 "2019-05-02T11:37:54Z")

</div>

Thanks for the quick help. The file system is NFS as you guessed. The environment variable fixes the solution. For anyone looking this up and having the same issue, my job submission looks like this now:

`bsub -env "all, JULIA_REVISE_POLL=1" -n 2 -R "rusage[mem=8000]" -W 09:00 "module load new gcc/4.8.2 python/3.6.1 & jupyter-lab &"`

This really makes things a lot easier now 🙂

EDIT: I forgot my bonus points!

```julia
Revise.LogRecord(Debug, DeleteMethod, Action, Revise_4ac0f476, "/cluster/home/gerickf/.julia/packages/Revise/RW8TD/src/Revise.jl", 226, (time=1.556797317047698e9, deltainfo=(Tuple{typeof(domath),Number}, MethodSummary(:domath, :Example, Symbol("/cluster/home/gerickf/.julia/dev/Example/src/Example.jl"), 16, Tuple{typeof(domath),Number}))))
Revise.LogRecord(Debug, Eval, Action, Revise_9147188b, "/cluster/home/gerickf/.julia/packages/Revise/RW8TD/src/Revise.jl", 276, (time=1.556797317439156e9, deltainfo=(Example, :(domath(x::Number) = begin
          #= /cluster/home/gerickf/.julia/dev/Example/src/Example.jl:16 =#
          x + 15
      end))))
Revise.LogRecord(Debug, Eval, Action, Revise_9147188b, "/cluster/home/gerickf/.julia/packages/Revise/RW8TD/src/Revise.jl", 276, (time=1.55679731749337e9, deltainfo=(Example, :(#= /cluster/home/gerickf/.julia/dev/Example/src/Example.jl:11 =# Core.:(@doc) " domath(x::Number)\n\nReturn `x + 5`.\n" domath(x::Number) = begin
              #= /cluster/home/gerickf/.julia/dev/Example/src/Example.jl:16 =#
              x + 15
          end false))))

```

---

<div class="post-metadata">

### Author: ![tim.holy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tim.holy/32/52_2.png) [@tim.holy](https://discourse.julialang.org/u/tim.holy)
#### Post date: [May 2, 2019, 12:15pm UTC](https://discourse.julialang.org/t/revise-jl-not-working-for-jupyter-server-on-lsf-based-cluster/23768/7 "2019-05-02T12:15:03Z")

</div>

I just meant that you had already received your bonus points for checking in the first place! Check your bonus-point account at your local bonus-point bank 😄.

BTW, I’ve never “lived” on a system that required polling, so I don’t have any experience with it. Please do report any issues you encounter. In particular, the interval of 5s is just taken from the default for `FileWatching.poll_file`. If you don’t like the setting, try changing it [here](https://github.com/timholy/Revise.jl/blob/4d4cdff9c07b8fe689d9273a2e62caaa3e586f55/src/Revise.jl#L40). If you play with it a while and conclude that this doesn’t cause any problems, a Revise PR to change the default would be considered.
