# Unable to use PlutoUI elements whilst using Pkg() to activate local env

**URL:** https://discourse.julialang.org/t/unable-to-use-plutoui-elements-whilst-using-pkg-to-activate-local-env/128579
**Category:** New to Julia
**Tags:** pluto, plutoui
**Created:** [April 30, 2025, 3:24pm UTC](https://discourse.julialang.org/t/unable-to-use-plutoui-elements-whilst-using-pkg-to-activate-local-env/128579 "2025-04-30T15:24:03Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Nathan\_Boyer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nathan_boyer/32/14825_2.png) [@Nathan\_Boyer](https://discourse.julialang.org/u/Nathan_Boyer)
#### Post date: [April 30, 2025, 5:18pm UTC](https://discourse.julialang.org/t/unable-to-use-plutoui-elements-whilst-using-pkg-to-activate-local-env/128579/2 "2025-04-30T17:18:17Z")

</div>

I think you need to `disable in file` the `Pkg.activate` cell. But I’m not totally clear on what your setup and goal is. See if either of these links help you:

> [@How to handle dependencies with Pluto notebook as package source code?](https://discourse.julialang.org/t/how-to-handle-dependencies-with-pluto-notebook-as-package-source-code/122780):
>
> Continuing the discussion from [Transforming a Pluto notebook into a Julia package](https://discourse.julialang.org/t/transforming-a-pluto-notebook-into-a-julia-package/60789/16): I’m having trouble figuring out what I need to do to use Pluto notebooks as source code, especially regarding the package environment and Pluto’s package manager. Do I need PlutoDevMacros.jl and/or @skip\_as\_script? I see “skip\_as\_script” inside Pluto comments in the provided example notebooks, but I do not see the macro at all when viewed as a notebook. How did you add these special comments? Is there document…

> [@Generate PDF document showing the equations in a package](https://discourse.julialang.org/t/generate-pdf-document-showing-the-equations-in-a-package/91064/3):
>
> I updated my package to go back to Pluto. It’s actually very easy. Pluto notebooks are just .jl files after all, so they can be include-ed as src files in a package. Then you can export the Pluto notebook as a PDF or HTML, either manually or with PlutoSliderServer.jl. The only [trick](https://discourse.julialang.org/t/how-to-handle-dependencies-with-pluto-notebook-as-package-source-code/122780) is to disable Pluto’s own package manager in the notebook by including a cell with the following content and then choosing “disable in file” in the cell menu options. begin import Pkg Pkg.activate(Base.current…

---

_[View the full topic](https://discourse.julialang.org/t/unable-to-use-plutoui-elements-whilst-using-pkg-to-activate-local-env/128579)._
