# Accessing package REPL mode in Jupyter (Julia 0.7)

**URL:** https://discourse.julialang.org/t/accessing-package-repl-mode-in-jupyter-julia-0-7/12395
**Category:** General Usage
**Tags:** question, jupyter, package-manager
**Created:** [July 15, 2018, 6:47pm UTC](https://discourse.julialang.org/t/accessing-package-repl-mode-in-jupyter-julia-0-7/12395 "2018-07-15T18:47:55Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![airpmb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/airpmb/32/7826_2.png) [@airpmb](https://discourse.julialang.org/u/airpmb)
#### Post date: [July 15, 2018, 6:47pm UTC](https://discourse.julialang.org/t/accessing-package-repl-mode-in-jupyter-julia-0-7/12395/1 "2018-07-15T18:47:55Z")

</div>

Is there an equivalent to hitting `]` when using Julia 0.7 in Jupyter? In 0.6 it was possible to e.g. `Pkg.add("PackageName")` in Jupyter – is something equivalent still possible with Julia 0.7?

---

<div class="post-metadata">

### Author: ![rdeits](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rdeits/32/286_2.png) [@rdeits](https://discourse.julialang.org/u/rdeits)
#### Post date: [July 15, 2018, 6:50pm UTC](https://discourse.julialang.org/t/accessing-package-repl-mode-in-jupyter-julia-0-7/12395/2 "2018-07-15T18:50:23Z")

</div>

I think `using Pkg; Pkg.add("PackageName")` will continue to work going forward. The package REPL is convenient but not required.

That said, it might just work if you do:

```julia
]add Packagename

```

in Jupyter. Does that work?

---

<div class="post-metadata">

### Author: ![airpmb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/airpmb/32/7826_2.png) [@airpmb](https://discourse.julialang.org/u/airpmb)
#### Post date: [July 15, 2018, 6:57pm UTC](https://discourse.julialang.org/t/accessing-package-repl-mode-in-jupyter-julia-0-7/12395/3 "2018-07-15T18:57:42Z")

</div>

I get `syntax: unexpected "]"` so no, it doesn’t seem to unfortunately.

I could use the method you describe, but it requires knowing the `Pkg` API beyond just the commands from the package REPL mode. For instance `Pkg.add("Gaston#master")` doesn’t work, one has to know that the equivalent is `Pkg.checkout("Gaston")` (at least I think it is!).

---

<div class="post-metadata">

### Author: ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)
#### Post date: [July 15, 2018, 7:05pm UTC](https://discourse.julialang.org/t/accessing-package-repl-mode-in-jupyter-julia-0-7/12395/4 "2018-07-15T19:05:26Z")

</div>

You can run Pkg REPL commands with the `pkg` string macro:

```julia
using Pkg
pkg"add Foo"
pkg"rm Bar"

```
