0
1

More than 1 year has passed since last update.

JupyterLab の Config option `template_path` not recognized by ... への対処法

Posted at

Anaconda を導入し、JupyterLab を起動するとタイトルにも書いた Config option template_path not recognized by ... というエラーを吐く。この対処法を記す。

Config option template_path not recognized by LenvsLatexExporter. Did you mean one of: template_file, template_name, template_paths?#1529 によると、nbconvert のバージョンが問題らしい。

現在のバージョンが nbconvert==6.3.0 であったので、以下コマンドでダウングレードする。

$ conda install -c conda-forge nbconvert==5.6.1

これでタイトルのエラーは出なくなった。

ついでに以下エラーも対処しておく。

Generating grammar tables from /home/user/anaconda3/envs/test/lib/python3.10/site-packages/blib2to3/Grammar.txt
Writing grammar tables to /home/user/.cache/black/21.12b0/Grammar3.10.1.final.0.pickle
Writing failed: [Errno 2] No such file or directory: '/home/user/.cache/black/21.12b0/tmp7hd0mq3k'
Generating grammar tables from /home/user/anaconda3/envs/test/lib/python3.10/site-packages/blib2to3/PatternGrammar.txt
Writing grammar tables to /home/user/.cache/black/21.12b0/PatternGrammar3.10.1.final.0.pickle
Writing failed: [Errno 2] No such file or directory: '/home/user/.cache/black/21.12b0/tmpmdc62nvt'

上記は black を使用している場合のエラー。ディレクトリを手動で作成しないといけないため以下で作成。(作成するディレクトリは black のバージョンによって異なるため、エラーをもとに判断。)

$ mkdir -p /home/user/.cache/black/21.12b0

これで black によるエラーも解消した。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1