# Suggestion for a new package: MinimalWorkingExamples.jl

**URL:** https://discourse.julialang.org/t/suggestion-for-a-new-package-minimalworkingexamples-jl/59391
**Category:** Package Announcements
**Tags:** question, package
**Created:** [April 16, 2021, 7:43am UTC](https://discourse.julialang.org/t/suggestion-for-a-new-package-minimalworkingexamples-jl/59391 "2021-04-16T07:43:27Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![feanor12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/feanor12/32/8212_2.png) [@feanor12](https://discourse.julialang.org/u/feanor12)
#### Post date: [April 16, 2021, 8:21am UTC](https://discourse.julialang.org/t/suggestion-for-a-new-package-minimalworkingexamples-jl/59391/4 "2021-04-16T08:21:03Z")

</div>

To start julia with a temp env you can run

```julia
julia --project=$(mktemp -d) # does not work on windows
julia --eval "using Pkg;Pkg.activate(mktempdir())" # does not enter the REPL

```

> [@Cmdline option/shortcut for activate --temp?](https://discourse.julialang.org/t/cmdline-option-shortcut-for-activate-temp/53956):
>
> Do we have a command line option to start julia with a temporary environment, instead of having to manually ] activate --temp? I imagine something like julia --project=@temp. If not, what do you think, should we add something like this?

Basically the new package would need to introduce a new REPL mode where packages are auto-installed on entering a using/import command.  
1.) Open REPL  
2.) Switch to “experiment” mode  
2.1) New environment is generated and activated  
3.) Enter code  
3.1) Code is scanned for using and intercepted to install the packages

---

_[View the full topic](https://discourse.julialang.org/t/suggestion-for-a-new-package-minimalworkingexamples-jl/59391)._
