Skip to content

Commit

Permalink
EBR-91: drop dependency from package.json in init
Browse files Browse the repository at this point in the history
  • Loading branch information
915-Misan-Teodora committed Sep 10, 2024
1 parent 75e4912 commit a8f9d58
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions tvbextunicore/__init__.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,12 @@
import json
from pathlib import Path

from ._version import __version__
from .handlers import setup_handlers



HERE = Path(__file__).parent.resolve()


with (HERE / "labextension" / "package.json").open() as fid:
data = json.load(fid)


def _jupyter_labextension_paths():
return [{
"src": "labextension",
"dest": data["name"]
"dest": "tvbextunicore"
}]


Expand All @@ -36,7 +26,7 @@ def _load_jupyter_server_extension(server_app):
JupyterLab application instance
"""
setup_handlers(server_app.web_app)
server_app.log.info("Registered {name} server extension".format(**data))
server_app.log.info("Registered tvbextunicore server extension")


# For backward compatibility with notebook server - useful for Binder/JupyterHub
Expand Down

0 comments on commit a8f9d58

Please sign in to comment.