File tree 2 files changed +10
-11
lines changed
2 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 72
72
73
73
pip install "jupyterlab>=4.0.0,<5" jupyterlab_vim*.whl
74
74
75
+ python -c "import jupyterlab_vim"
75
76
76
77
jupyter labextension list
77
78
jupyter labextension list 2>&1 | grep -ie "@axlair/jupyterlab_vim.*OK"
Original file line number Diff line number Diff line change 1
-
2
- import json
3
- from pathlib import Path
4
-
5
- from ._version import __version__
6
-
7
- HERE = Path (__file__ ).parent .resolve ()
8
-
9
- with (HERE / "labextension" / "package.json" ).open () as fid :
10
- data = json .load (fid )
1
+ try :
2
+ from ._version import __version__
3
+ except ImportError :
4
+ # Fallback when using the package in dev mode without installing
5
+ # in editable mode with pip. It is highly recommended to install
6
+ # the package from a stable release or in editable mode: https://pip.pypa.io/en/stable/topics/local-project-installs/#editable-installs
7
+ import warnings
8
+ warnings .warn ("Importing 'jupyterlab_vim' outside a proper installation." )
9
+ __version__ = "dev"
11
10
12
11
def _jupyter_labextension_paths ():
13
12
return [{
14
13
"src" : "labextension" ,
15
14
"dest" : "@axlair/jupyterlab_vim" ,
16
15
}]
17
-
You can’t perform that action at this time.
0 commit comments