# Deserialize does not work when reopen

**URL:** <https://discourse.julialang.org/t/deserialize-does-not-work-when-reopen/92892>\
**Category:** New to Julia\
**Tags:** question, package, dataframes, file, serialization\
**Created:** [January 12, 2023, 7:51pm UTC](https://discourse.julialang.org/t/deserialize-does-not-work-when-reopen/92892 "2023-01-12T19:51:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JNSDVD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jnsdvd/32/44652_2.png) [@JNSDVD](https://discourse.julialang.org/u/JNSDVD)\
**Post date:** [January 12, 2023, 7:51pm UTC](https://discourse.julialang.org/t/deserialize-does-not-work-when-reopen/92892/1 "2023-01-12T19:51:16Z")

</div>

Hey guys,

I do not understand why the first code returns true while it does not work when I close the Jupyter Notebook, open it again and run only the second code.

Of course the file XX.jls is still in the same folder as the Notebook.

```julia
using DataFrames, Serialization
Test=[1,2]
XX=DataFrame("Test"=>Test)
serialize("XX.jls", XX)
YY=deserialize("XX.jls")
YY==XX

# returns true

```

```julia
using Serialization
deserialize("XX.jls")

```

```julia
KeyError: key DataFrames [a93c6f00-e57d-5684-b7b6-d8193f3e46c0] not found

```

Any help is highly appreciated 🙂  
cheers

---

<div class="post-metadata">

**Author:** ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)\
**Post date:** [January 12, 2023, 7:53pm UTC](https://discourse.julialang.org/t/deserialize-does-not-work-when-reopen/92892/2 "2023-01-12T19:53:15Z")

</div>

You can’t make a `DataFrame` object if you don’t have `DataFrames` loaded.

---

<div class="post-metadata">

**Author:** ![JNSDVD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jnsdvd/32/44652_2.png) [@JNSDVD](https://discourse.julialang.org/u/JNSDVD)\
**Post date:** [January 12, 2023, 7:55pm UTC](https://discourse.julialang.org/t/deserialize-does-not-work-when-reopen/92892/3 "2023-01-12T19:55:42Z")

</div>

🤦‍♂️ 🤦‍♂️ 🤦‍♂️
