Skip to content

Commit

Permalink
Deal with _version missing
Browse files Browse the repository at this point in the history
  • Loading branch information
fcollonval authored and willh-cmyk committed Nov 13, 2023
1 parent ca8a2ea commit d9bf916
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion jupyterlab_pygments/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
from ._version import __version__ # noqa
try:
from ._version import __version__ # noqa
except ImportError:
# Fallback when using the package in dev mode without installing
# in editable mode with pip. Here this is particularly important
# to be able to run the generate_css.py script.
__version__ = "dev"
from .style import JupyterStyle # noqa


Expand Down

0 comments on commit d9bf916

Please sign in to comment.