This changelog covers changes since version 0.2.0:
-
ported to JupyterLab 1.0
-
added jumping to the imported module. Examples of supported syntax include:
-
Python 3 (Python 2 was not tested and the kernel resolution is not guaranteed to work):
import x
,from x import z
,import x.y
alt-clicking on
x
ory
in the above examples lead to an attempt to open relevant module; if a kernel is available (notebook only for now) the path to the source module will be resolved accurately, otherwise a simple guess (e.g.x.py
forx
) will be used. Relative imports are supported and the location of the file is considered. -
R:
source('abc.R')
import::here(fun.1, .from='abc.R')
in the first example, alt-clicking on
source
will openabc.R
; in the second example, alt-clicking on.from
will also openabc.R
. This is planned to be extended to cover the string defining the path itself in future versions.
Note: only files reachable by JupyterLab can be opened (which is limited due to security reasons, however, may be worked around in the future versions).
-
-
fixed regression from v0.1.3 in
CodeJumper._findLastDefinition
which rejected results of the first filtering step; relevant test case was included -
fixed the element counter (
CodeMirrorExtension._countUsagesBefore
) mixing up variables and properties instead of focusing on one type only; added tests covering this function -
added more Python jump tests, reuse the testing code
-
added test for
CodeMirrorExtension.selectToken()
with a challenging edge case.