Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extensions how to #539

Open
phanirithvij opened this issue May 21, 2024 · 0 comments
Open

extensions how to #539

phanirithvij opened this issue May 21, 2024 · 0 comments

Comments

@phanirithvij
Copy link

I am a nix beginner and thus am more driven by guides/tutorials.

Readme says

These environments include JupyterLab - configurable with extensions

But I couldn't find any info on how to add an extension via nix in the jupyenv.io site, and if I tried to add it via the web ui it fails to add because of an issue.

I tried to install an extension from the webui named jupyterlab-simpledark

This is the log

Expand

[W 2024-05-21 10:01:52.674 LabApp] Build recommended
[W 2024-05-21 10:01:52.674 LabApp] jupyterlab-simpledark needs to be included in build
[I 2024-05-21 10:01:59.065 LabApp] Building jupyterlab assets (production, minimized)
[W 2024-05-21 10:02:06.392 LabApp] Build failed, running a clean and rebuild
[I 2024-05-21 10:02:06.400 LabApp] Cleaning /home/rithvij/Projects/notebooks/twaegjupyterenv/.jupyter/lab/share/jupyter/lab...
[W 2024-05-21 10:02:06.401 ServerApp] 500 POST /lab/api/build?1716265918810 (127.0.0.1): 'AppOptions' object has no attribute 'extensions'
[W 2024-05-21 10:02:06.401 LabApp] wrote error: "'AppOptions' object has no attribute 'extensions'"
    Traceback (most recent call last):
      File "/nix/store/i2ihlpzkbcysdyq8srhh3xlpmv6cskgy-python3-3.10.9-env/lib/python3.10/site-packages/jupyterlab/handlers/build_handler.py", line 114, in _run_build
        return build(app_options=app_options)
      File "/nix/store/i2ihlpzkbcysdyq8srhh3xlpmv6cskgy-python3-3.10.9-env/lib/python3.10/site-packages/jupyterlab/commands.py", line 506, in build
        return handler.build(
      File "/nix/store/i2ihlpzkbcysdyq8srhh3xlpmv6cskgy-python3-3.10.9-env/lib/python3.10/site-packages/jupyterlab/commands.py", line 722, in build
        raise RuntimeError(msg)
    RuntimeError: JupyterLab failed to build

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/nix/store/i2ihlpzkbcysdyq8srhh3xlpmv6cskgy-python3-3.10.9-env/lib/python3.10/site-packages/jupyterlab/handlers/build_handler.py", line 149, in post
        yield self.builder.build()
      File "/nix/store/i2ihlpzkbcysdyq8srhh3xlpmv6cskgy-python3-3.10.9-env/lib/python3.10/site-packages/tornado/gen.py", line 769, in run
        value = future.result()
      File "/nix/store/i2ihlpzkbcysdyq8srhh3xlpmv6cskgy-python3-3.10.9-env/lib/python3.10/site-packages/tornado/gen.py", line 776, in run
        yielded = self.gen.throw(*exc_info)  # type: ignore
      File "/nix/store/i2ihlpzkbcysdyq8srhh3xlpmv6cskgy-python3-3.10.9-env/lib/python3.10/site-packages/jupyterlab/handlers/build_handler.py", line 82, in build
        raise e
      File "/nix/store/i2ihlpzkbcysdyq8srhh3xlpmv6cskgy-python3-3.10.9-env/lib/python3.10/site-packages/jupyterlab/handlers/build_handler.py", line 80, in build
        yield self._future
      File "/nix/store/i2ihlpzkbcysdyq8srhh3xlpmv6cskgy-python3-3.10.9-env/lib/python3.10/site-packages/tornado/gen.py", line 769, in run
        value = future.result()
      File "/nix/store/i2ihlpzkbcysdyq8srhh3xlpmv6cskgy-python3-3.10.9-env/lib/python3.10/site-packages/jupyterlab/handlers/build_handler.py", line 68, in build
        yield self._run_build(
      File "/nix/store/i2ihlpzkbcysdyq8srhh3xlpmv6cskgy-python3-3.10.9-env/lib/python3.10/site-packages/tornado/gen.py", line 769, in run
        value = future.result()
      File "/nix/store/abax98471z8fshv4b9p46bkh3lxmpy0z-python3-3.10.9/lib/python3.10/concurrent/futures/thread.py", line 58, in run
        result = self.fn(*self.args, **self.kwargs)
      File "/nix/store/i2ihlpzkbcysdyq8srhh3xlpmv6cskgy-python3-3.10.9-env/lib/python3.10/site-packages/jupyterlab/handlers/build_handler.py", line 119, in _run_build
        clean(app_options=app_options)
      File "/nix/store/i2ihlpzkbcysdyq8srhh3xlpmv6cskgy-python3-3.10.9-env/lib/python3.10/site-packages/jupyterlab/commands.py", line 477, in clean
        targets = [t for t in possibleTargets if getattr(app_options, t)]
      File "/nix/store/i2ihlpzkbcysdyq8srhh3xlpmv6cskgy-python3-3.10.9-env/lib/python3.10/site-packages/jupyterlab/commands.py", line 477, in <listcomp>
        targets = [t for t in possibleTargets if getattr(app_options, t)]
    AttributeError: 'AppOptions' object has no attribute 'extensions'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/nix/store/i2ihlpzkbcysdyq8srhh3xlpmv6cskgy-python3-3.10.9-env/lib/python3.10/site-packages/tornado/web.py", line 1713, in _execute
        result = await result
      File "/nix/store/i2ihlpzkbcysdyq8srhh3xlpmv6cskgy-python3-3.10.9-env/lib/python3.10/site-packages/tornado/gen.py", line 776, in run
        yielded = self.gen.throw(*exc_info)  # type: ignore
      File "/nix/store/i2ihlpzkbcysdyq8srhh3xlpmv6cskgy-python3-3.10.9-env/lib/python3.10/site-packages/jupyterlab/handlers/build_handler.py", line 151, in post
        raise web.HTTPError(500, str(e))
    tornado.web.HTTPError: HTTP 500: Internal Server Error ('AppOptions' object has no attribute 'extensions')
[E 2024-05-21 10:02:06.403 LabApp] {
      "Host": "localhost:8888",
      "Accept": "*/*",
      "Referer": "http://localhost:8888/lab/tree/notebooks/py.ipynb",
      "User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0"
    }
[E 2024-05-21 10:02:06.403 LabApp] 500 POST /lab/api/build?1716265918810 (43643a47a0ca463fa2eaa4669d4e8fd8@127.0.0.1) 7589.01ms referer=http://localhost:8888/lab/tree/notebooks/py.ipynb

Also I think these qna type issues can be discussions instead, can github discussions be opened for this repo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant