# JETLS: \`DataFrame\` is not defined

**URL:** <https://discourse.julialang.org/t/jetls-dataframe-is-not-defined/139961>\
**Category:** New to Julia\
**Tags:** emacs, jetls\
**Created:** [October 12, 2026, 7:11am UTC](https://discourse.julialang.org/t/jetls-dataframe-is-not-defined/139961 "2026-10-12T07:11:25Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![George9000](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/george9000/32/23619_2.png) [@George9000](https://discourse.julialang.org/u/George9000)\
**Post date:** [October 13, 2026, 9:22pm UTC](https://discourse.julialang.org/t/jetls-dataframe-is-not-defined/139961/13 "2026-10-13T21:22:06Z")

</div>

I still don’t understand your context. I don’t understand the problem you are experiencing, and I’m guessing at what you mean. This is why I suggested in my first reply that you document a MWE and delineate the problem.

Here’s my usual workflow when starting a project, usually a data analysis of some sort.

```bash
julia -e 'using Pkg;Pkg.generate("aproject")'
cd aproject
julia -e 'using Pkg;Pkg.activate(".");Pkg.instantiate()'

```

You should now see a `Project.toml` and a `Manifest.toml` in your project directory.

I work with Revise as one of the few packages in my global environment and is part of my startup. So my `~/.julia/config/startup.jl` reads (in part)

```julia
using Pkg

if isfile("Project.toml") && isfile("Manifest.toml")
    Pkg.activate(".")
end

try
    using Revise
catch e
    @warn "Error initializing Revise" exception=(e, catch_backtrace())
end
println(":")
println(":" * pwd())
println(":")

```

In the project directory, I start julia. Dropping to the package prompt, `pkg>` I add DataFrames, CSV, etc. to the project.

Now back to the project directory.

```bash
touch myanalysis.jl
echo "using aproject;\nusing DataFrames;" > myanalysis.jl

```

In my src/aproject.jl, I [use this trick](https://discourse.julialang.org/t/lsp-missing-reference-woes/98231/16)

```julia
module aproject
using DatFrames

@static if false
    include("../myanalysis.jl")
end
end # module aproject

```

Note that [the follow-up reply](https://discourse.julialang.org/t/lsp-missing-reference-woes/98231/17) reported success in emacs. I’m not strictly sure that’s needed for eglot but I’ve left it there for now.

As @ufechner7 notes, eglot / jetls takes a bit of time to start up in Emacs. But once it does, things seem to work. I haven’t got all the `xref` lookup functions working but with the emacs consult/embark, I can also do a consult-rg (ripgrep) which generally finds anything I need in the project.

---

_[View the full topic](https://discourse.julialang.org/t/jetls-dataframe-is-not-defined/139961)._
