Dyalog / link

Source code for Link – the built-in component that enables the use of text files as the primary storage mechanism for APL source code
https://dyalog.github.io/link
MIT License
19 stars 11 forks source link

File changes not automatically updated while using Jupyer notebooks #526

Open rikedyp opened 1 year ago

rikedyp commented 1 year ago

Describe the bug Changes made to a file linked to a namespace are not automatically reflected in the workspace attached to a Jupyter notebook

To Reproduce

  1. Start Jupyter notebook/lab
  2. Create 2 notebooks
  3. ]LINK.Create # app in both notebooks
  4. In one notebook:
    Foo←{a}
    ]LINK.Add Foo
  5. In the other notebook:
    Foo

Returns:

VALUE ERROR: Undefined name: Foo
      Foo
      ∧

But after ]LINK.Status or ]LINK.Refresh # -source=dir

{a}

Expected behaviour The contents of Foo should be updated in the 2nd linked notebook

Desktop (please complete the following information): Using dyalog-jupyter-notebook kernel from commit: 421dd512207daaf3aa62589839fac0edd9365c54

 Dyalog  19.0.46960 64-bit Unicode, BuildID be73c399            
 OS      Windows 10 or Windows Server 2016 (10.0.19044) 64-bit  
 Link    3.1.2                                                  
 SALT    2.91                                                   
 UCMD    2.51                                                   
 .NET    .NET Framework 4.8.4614.0                              
 WS      19.0  
rikedyp commented 1 year ago

Yet to try this with 18.2, will updated when/if I am able to repro