This did allow me to see the installed widgets via jupyter labextension list
, but permission issues then prevent the jupyter environment from launching:
JUPYTER_DATA_DIR="$FLOX_ENV/share/jupyter" jupyter lab --ip=0.0.0.0
[I 2024-09-08 03:27:21.738 ServerApp] jupyter_lsp | extension was successfully linked.
[I 2024-09-08 03:27:21.741 ServerApp] jupyter_server_terminals | extension was successfully linked.
[I 2024-09-08 03:27:21.744 ServerApp] jupyterlab | extension was successfully linked.
[I 2024-09-08 03:27:21.747 ServerApp] notebook | extension was successfully linked.
[W 2024-09-08 03:27:21.747 ServerApp] notebook_shim | error linking extension: [Errno 13] Permission denied: '/home/ubuntu/embedding-testing/embedding-testing-2/.flox/run/x86_64-linux.embedding-testing-2/share/jupyter/runtime'
Traceback (most recent call last):
File "/home/ubuntu/embedding-testing/embedding-testing-2/.flox/run/x86_64-linux.embedding-testing-2/lib/python3.12/site-packages/traitlets/traitlets.py", line 632, in get
value = obj._trait_values[self.name]
~~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'browser_open_file'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ubuntu/embedding-testing/embedding-testing-2/.flox/run/x86_64-linux.embedding-testing-2/lib/python3.12/site-packages/traitlets/traitlets.py", line 632, in get
value = obj._trait_values[self.name]
~~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'runtime_dir'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ubuntu/embedding-testing/embedding-testing-2/.flox/run/x86_64-linux.embedding-testing-2/lib/python3.12/site-packages/jupyter_server/extension/manager.py", line 346, in link_extension
extension.link_all_points(self.serverapp)
File "/home/ubuntu/embedding-testing/embedding-testing-2/.flox/run/x86_64-linux.embedding-testing-2/lib/python3.12/site-packages/jupyter_server/extension/manager.py", line 228, in link_all_points
self.link_point(point_name, serverapp)
File "/home/ubuntu/embedding-testing/embedding-testing-2/.flox/run/x86_64-linux.embedding-testing-2/lib/python3.12/site-packages/jupyter_server/extension/manager.py", line 218, in link_point
point.link(serverapp)
File "/home/ubuntu/embedding-testing/embedding-testing-2/.flox/run/x86_64-linux.embedding-testing-2/lib/python3.12/site-packages/jupyter_server/extension/manager.py", line 140, in link
linker(serverapp)
File "/home/ubuntu/embedding-testing/embedding-testing-2/.flox/run/x86_64-linux.embedding-testing-2/lib/python3.12/site-packages/notebook_shim/nbserver.py", line 109, in _link_jupyter_server_extension
members = diff_members(serverapp, nbapp)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/embedding-testing/embedding-testing-2/.flox/run/x86_64-linux.embedding-testing-2/lib/python3.12/site-packages/notebook_shim/nbserver.py", line 62, in diff_members
m1 = public_members(obj1)
^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/embedding-testing/embedding-testing-2/.flox/run/x86_64-linux.embedding-testing-2/lib/python3.12/site-packages/notebook_shim/nbserver.py", line 56, in public_members
members = inspect.getmembers(obj)
^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/pgb120fb7srbh418v4i2a70aq1w9dawd-python3-3.12.5/lib/python3.12/inspect.py", line 614, in getmembers
return _getmembers(object, predicate, getattr)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/pgb120fb7srbh418v4i2a70aq1w9dawd-python3-3.12.5/lib/python3.12/inspect.py", line 592, in _getmembers
value = getter(object, key)
^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/embedding-testing/embedding-testing-2/.flox/run/x86_64-linux.embedding-testing-2/lib/python3.12/site-packages/traitlets/traitlets.py", line 687, in __get__
return t.cast(G, self.get(obj, cls)) # the G should encode the Optional
^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/embedding-testing/embedding-testing-2/.flox/run/x86_64-linux.embedding-testing-2/lib/python3.12/site-packages/traitlets/traitlets.py", line 635, in get
default = obj.trait_defaults(self.name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/embedding-testing/embedding-testing-2/.flox/run/x86_64-linux.embedding-testing-2/lib/python3.12/site-packages/traitlets/traitlets.py", line 1897, in trait_defaults
return t.cast(Sentinel, self._get_trait_default_generator(names[0])(self))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/embedding-testing/embedding-testing-2/.flox/run/x86_64-linux.embedding-testing-2/lib/python3.12/site-packages/traitlets/traitlets.py", line 1241, in __call__
return self.func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/embedding-testing/embedding-testing-2/.flox/run/x86_64-linux.embedding-testing-2/lib/python3.12/site-packages/jupyter_server/serverapp.py", line 1756, in _default_browser_open_file
return os.path.join(self.runtime_dir, basename)
^^^^^^^^^^^^^^^^
File "/home/ubuntu/embedding-testing/embedding-testing-2/.flox/run/x86_64-linux.embedding-testing-2/lib/python3.12/site-packages/traitlets/traitlets.py", line 687, in __get__
return t.cast(G, self.get(obj, cls)) # the G should encode the Optional
^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/embedding-testing/embedding-testing-2/.flox/run/x86_64-linux.embedding-testing-2/lib/python3.12/site-packages/traitlets/traitlets.py", line 635, in get
default = obj.trait_defaults(self.name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/embedding-testing/embedding-testing-2/.flox/run/x86_64-linux.embedding-testing-2/lib/python3.12/site-packages/traitlets/traitlets.py", line 1897, in trait_defaults
return t.cast(Sentinel, self._get_trait_default_generator(names[0])(self))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/embedding-testing/embedding-testing-2/.flox/run/x86_64-linux.embedding-testing-2/lib/python3.12/site-packages/jupyter_core/application.py", line 111, in _runtime_dir_default
ensure_dir_exists(rd, mode=0o700)
File "/home/ubuntu/embedding-testing/embedding-testing-2/.flox/run/x86_64-linux.embedding-testing-2/lib/python3.12/site-packages/jupyter_core/utils/__init__.py", line 26, in ensure_dir_exists
Path(path).mkdir(parents=True, mode=mode)
File "/nix/store/pgb120fb7srbh418v4i2a70aq1w9dawd-python3-3.12.5/lib/python3.12/pathlib.py", line 1311, in mkdir
os.mkdir(self, mode)
PermissionError: [Errno 13] Permission denied: '/home/ubuntu/embedding-testing/embedding-testing-2/.flox/run/x86_64-linux.embedding-testing-2/share/jupyter/runtime'
Traceback (most recent call last):
File "/home/ubuntu/embedding-testing/embedding-testing-2/.flox/run/x86_64-linux.embedding-testing-2/lib/python3.12/site-packages/traitlets/traitlets.py", line 632, in get
value = obj._trait_values[self.name]
~~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'runtime_dir'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/nix/store/jdaydbij5skwjlijmi350yc8vzlw0zhd-python3.12-jupyterlab-4.2.4/bin/.jupyter-lab-wrapped", line 9, in <module>
sys.exit(main())
^^^^^^
File "/home/ubuntu/embedding-testing/embedding-testing-2/.flox/run/x86_64-linux.embedding-testing-2/lib/python3.12/site-packages/jupyter_server/extension/application.py", line 616, in launch_instance
serverapp = cls.initialize_server(argv=args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/embedding-testing/embedding-testing-2/.flox/run/x86_64-linux.embedding-testing-2/lib/python3.12/site-packages/jupyter_server/extension/application.py", line 586, in initialize_server
serverapp.initialize(
File "/home/ubuntu/embedding-testing/embedding-testing-2/.flox/run/x86_64-linux.embedding-testing-2/lib/python3.12/site-packages/traitlets/config/application.py", line 118, in inner
return method(app, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/embedding-testing/embedding-testing-2/.flox/run/x86_64-linux.embedding-testing-2/lib/python3.12/site-packages/jupyter_server/serverapp.py", line 2755, in initialize
self.init_configurables()
File "/home/ubuntu/embedding-testing/embedding-testing-2/.flox/run/x86_64-linux.embedding-testing-2/lib/python3.12/site-packages/jupyter_server/serverapp.py", line 2065, in init_configurables
"connection_dir": self.runtime_dir,
^^^^^^^^^^^^^^^^
File "/home/ubuntu/embedding-testing/embedding-testing-2/.flox/run/x86_64-linux.embedding-testing-2/lib/python3.12/site-packages/traitlets/traitlets.py", line 687, in __get__
return t.cast(G, self.get(obj, cls)) # the G should encode the Optional
^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/embedding-testing/embedding-testing-2/.flox/run/x86_64-linux.embedding-testing-2/lib/python3.12/site-packages/traitlets/traitlets.py", line 635, in get
default = obj.trait_defaults(self.name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/embedding-testing/embedding-testing-2/.flox/run/x86_64-linux.embedding-testing-2/lib/python3.12/site-packages/traitlets/traitlets.py", line 1897, in trait_defaults
return t.cast(Sentinel, self._get_trait_default_generator(names[0])(self))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/embedding-testing/embedding-testing-2/.flox/run/x86_64-linux.embedding-testing-2/lib/python3.12/site-packages/jupyter_core/application.py", line 111, in _runtime_dir_default
ensure_dir_exists(rd, mode=0o700)
File "/home/ubuntu/embedding-testing/embedding-testing-2/.flox/run/x86_64-linux.embedding-testing-2/lib/python3.12/site-packages/jupyter_core/utils/__init__.py", line 26, in ensure_dir_exists
Path(path).mkdir(parents=True, mode=mode)
File "/nix/store/pgb120fb7srbh418v4i2a70aq1w9dawd-python3-3.12.5/lib/python3.12/pathlib.py", line 1311, in mkdir
os.mkdir(self, mode)
PermissionError: [Errno 13] Permission denied: '/home/ubuntu/embedding-testing/embedding-testing-2/.flox/run/x86_64-linux.embedding-testing-2/share/jupyter/runtime'