Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

Commit

Permalink
import version directly in widget
Browse files Browse the repository at this point in the history
  • Loading branch information
manzt committed Feb 13, 2022
1 parent 103cfd1 commit c934792
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ __pycache__/

.ipynb_checkpoints/

higlass_widget/_version.py

node_modules/

higlass_widget/nbextension/index.js
Expand Down
1 change: 0 additions & 1 deletion higlass_widget/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import sys

from ._version import version as __version__
from .widget import HiGlassWidget

try:
Expand Down
8 changes: 7 additions & 1 deletion higlass_widget/widget.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
import json
import pathlib
from typing import Any, Dict

import ipywidgets
import traitlets.traitlets as t

from ._version import version
here = pathlib.Path(__file__).parent

with open(here / "labextension" / "package.json") as f:
pkg = json.load(f)

version = pkg["version"]


class HiGlassWidget(ipywidgets.DOMWidget):
Expand Down

0 comments on commit c934792

Please sign in to comment.