Skip to content

make sandbox compatible with edit server (multiple notebooks) #2598

@simonmaris

Description

@simonmaris

Description

Currently --sandbox works great for single notebooks.

However, when you start the edit server, two problems occur:

  • we have one isolated environment for all the notebooks
  • the script metadata per PEP 723 is ignored on notebook launch, instead required packages are auto-discovered.

It would be lovely to make sandbox compatibel with this mode, since we can then really utilize the power of UV with it's global cache and users can switch projects easily without worrying about dependencies and environments. Really beginner friendly that way and no terminal needed to create / activate manually managed environments.

Suggested solution

Create some sort of logic that activates and deactivates a uv isolated environment on notebook launch and shutdown from the edit server.

Alternative

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions