Skip to content

Feature request: install package to temp environment through REPL menu #3126

@jishnub

Description

@jishnub

Currently, on v1.8,

julia> using ArrayLayouts
 │ Package ArrayLayouts not found, but a package named ArrayLayouts is available from a registry. 
 │ Install package?
 │   (@v1.8) pkg> add ArrayLayouts 
 └ (y/n/o) [y]: 

selecting o I obtain

julia> using ArrayLayouts
 │ Package ArrayLayouts not found, but a package named ArrayLayouts is available from a registry. 
 │ Install package?
 │   (@v1.8) pkg> add ArrayLayouts 
 └ Select environment:
 > 1: `~/.julia/environments/v1.8/Project.toml` (@v#.#)

However, in my workflow, I just want to experiment with the package, and want to add it to a temporary environment. Currently, I need to activate a temp environment and install it there, for which I need to switch to the pkg mode (or run using Pkg; Pkg.activate(temp=true)). In either case, I must exit the menu. It would be convenient if a temp environment option was provided in the menu.

Metadata

Metadata

Assignees

No one assigned

    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