# Debugger warning: It seems that frozen modules are being used

**URL:** <https://discourse.jupyter.org/t/debugger-warning-it-seems-that-frozen-modules-are-being-used/23988>\
**Category:** Notebook\
**Tags:** notebook\
**Created:** [February 17, 2024, 12:00pm UTC](https://discourse.jupyter.org/t/debugger-warning-it-seems-that-frozen-modules-are-being-used/23988 "2024-02-17T12:00:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![osMrPigHead](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/osmrpighead/32/12422_2.png) [@osMrPigHead](https://discourse.jupyter.org/u/osMrPigHead)\
**Post date:** [February 17, 2024, 12:00pm UTC](https://discourse.jupyter.org/t/debugger-warning-it-seems-that-frozen-modules-are-being-used/23988/1 "2024-02-17T12:00:29Z")

</div>

I’m using Jupyter Notebook 7 and trying to install new environment by `python -m ipykernel install` and manage environments by `jupyter kernelspec`.

I get this when I run `python -m ipykernel xxx` or `jupyter kernelspec xxx`

```auto
0.00s - Debugger warning: It seems that frozen modules are being used, which may
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.

```

1. I don’t want to see this warning when I’m managing my environments. What’s the correct choice to avoid this?
2. I found the debugger work well even without `-Xfrozen_modules=off` in `kernel.json`. So what does `frozen modules` mean and what does it affect?

I’ve tried the solution offered in [Debugger warning: It seems that frozen modules are being used (Python 3.11.0) - #21 by krassowski](https://discourse.jupyter.org/t/debugger-warning-it-seems-that-frozen-modules-are-being-used-python-3-11-0/16544/21), but it doesn’t work.

## Environment Info

The anaconda is newly installed. (Version 2023.09-0)

```auto
Ubuntu: 22.04 (running on WSL2)
 conda: 24.1.1
Python: 3.11.5

```

### `jupyter --version`

```auto
IPython : 8.20.0
ipykernel : 6.28.0
ipywidgets : 8.0.4
jupyter_client : 8.6.0
jupyter_core : 5.5.0
jupyter_server : 2.10.0
jupyterlab : 4.0.11
nbclient : 0.8.0
nbconvert : 7.10.0
nbformat : 5.9.2
notebook : 7.0.8
qtconsole : 5.4.2
traitlets : 5.7.1

```

---

<div class="post-metadata">

**Author:** ![krassowski](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/krassowski/32/1685_2.png) [@krassowski](https://discourse.jupyter.org/u/krassowski)\
**Post date:** [February 18, 2024, 10:16am UTC](https://discourse.jupyter.org/t/debugger-warning-it-seems-that-frozen-modules-are-being-used/23988/2 "2024-02-18T10:16:54Z")

</div>

> [@osMrPigHead](#):
>
> I’ve tried the solution offered in [Debugger warning: It seems that frozen modules are being used (Python 3.11.0) - #21 by krassowski](https://discourse.jupyter.org/t/debugger-warning-it-seems-that-frozen-modules-are-being-used-python-3-11-0/16544/21), but it doesn’t work.

By it does not work do you mean that you see the warning when managing kernels using `python -m ipykernel`, or when running the kernel? The solution so far is for not showing the warning on runtime when spwaning kernel, not for hiding it during kernel spec management operations.
