From 910cd28df1e702cc769b6d908194a456f608c169 Mon Sep 17 00:00:00 2001 From: tomiock Date: Sat, 28 Sep 2024 12:26:59 +0200 Subject: [PATCH 1/2] test commit --- .gitignore | 1 + helpers/ipynb_convert/util.py | 1 + 2 files changed, 2 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..63cbd76 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +helpers/.encodings diff --git a/helpers/ipynb_convert/util.py b/helpers/ipynb_convert/util.py index 1083ec3..f38f595 100644 --- a/helpers/ipynb_convert/util.py +++ b/helpers/ipynb_convert/util.py @@ -231,6 +231,7 @@ def get_json(file): content = json.load(f) return content else: + print('file not found') return {} From 766041665b2780d20e0a9b4d016370c2047c5dd9 Mon Sep 17 00:00:00 2001 From: tomiock Date: Sat, 19 Oct 2024 21:43:51 +0200 Subject: [PATCH 2/2] fixed whitespace on file names --- autoload/jukit/convert.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/jukit/convert.vim b/autoload/jukit/convert.vim index 912b1a7..0194c4d 100644 --- a/autoload/jukit/convert.vim +++ b/autoload/jukit/convert.vim @@ -62,7 +62,7 @@ fun! s:convert_to_ipynb(args) abort endfun fun! s:convert_to_script() abort - let file_current = escape(expand("%:p"), ' \') + let file_current = escape(expand("%:p"), '\') python3 << EOF import vim, os, sys, json @@ -129,7 +129,7 @@ fun! jukit#convert#save_nb_to_file(run, open, to) abort let viewer = 'xdg-open' endif - let file_current = escape(expand("%:p"), ' \') + let file_current = escape(expand("%:p"), '\') let fname = escape(expand("%:p:r"), ' \') let ipynb_file = fname . '.ipynb' let html_theme = get(g:, 'jukit_html_theme', 'dark')