前提・実現したいこと
jupyter notebookを起動すると、no connection to kernelとなり、コードを打っても実行できません。
発生している問題・エラーメッセージ
[W 15:09:40.763 NotebookApp] Notebook Untitled1.ipynb is not trusted [I 15:09:41.119 NotebookApp] Kernel started: 046a2c82-b7c2-4614-87d7-79eafed4b19f, name: python3 Traceback (most recent call last): File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 193, in run_module_as_main "main", mod_spec) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 85, in run_code exec(code, run_globals) File "C:\Users\tomoh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\ipykernel_launcher.py", line 16, in <module> app.launch_new_instance() File "C:\Users\tomoh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\traitlets\config\application.py", line 844, in launch_instance app.initialize(argv) File "C:\Users\tomoh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\traitlets\config\application.py", line 87, in inner return method(app, *args, **kwargs) File "C:\Users\tomoh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\ipykernel\kernelapp.py", line 577, in initialize self.write_connection_file() File "C:\Users\tomoh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\ipykernel\kernelapp.py", line 232, in write_connection_file iopub_port=self.iopub_port, control_port=self.control_port) File "C:\Users\tomoh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\jupyter_client\connect.py", line 136, in write_connection_file with secure_write(fname) as f: File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\lib\contextlib.py", line 112, in enter return next(self.gen) File "C:\Users\tomoh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\jupyter_core\paths.py", line 461, in secure_write win32_restrict_file_to_user(fname) File "C:\Users\tomoh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\jupyter_core\paths.py", line 387, in win32_restrict_file_to_user import win32api ImportError: DLL load failed: 指定されたモジュールが見つかりません。 [I 15:09:44.103 NotebookApp] KernelRestarter: restarting kernel (1/5), new random ports [IPKernelApp] ERROR | Failed to load connection file: 'C:\Users\tomoh\AppData\Roaming\jupyter\runtime\kernel-046a2c82-b7c2-4614-87d7-79eafed4b19f.json' Traceback (most recent call last): File "C:\Users\tomoh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\ipykernel\kernelapp.py", line 257, in init_connection_file self.load_connection_file() File "C:\Users\tomoh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\jupyter_client\connect.py", line 494, in load_connection_file info = json.load(f) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\lib\json_init.py", line 296, in load parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\lib\json_init.py", line 348, in loads return _default_decoder.decode(s) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\lib\json\decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) ```
KernelRestarter: restart failed
[W 13:00:52.837 NotebookApp] Kernel 179c6d7d-b2a7-412f-a957-2006a0f88c5f died, removing from map.
### 該当のソースコード ```ここに言語名を入力 python
試したこと
アナコンダの再インストール
ここに問題に対して試したことを記載してください。
補足情報(FW/ツールのバージョンなど)
数週間前までは問題なく使えていました。
ここにより詳細な情報を記載してください。