From bfd0190a8abb3f919b35a0d3e78a49f619b682ae Mon Sep 17 00:00:00 2001 From: Himadri Bhattacharjee <107522312+lavafroth@users.noreply.github.com> Date: Thu, 2 Apr 2026 17:47:05 +0530 Subject: [PATCH] chore: remove redundant .pythonrc file --- .pythonrc | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 .pythonrc diff --git a/.pythonrc b/.pythonrc deleted file mode 100644 index c8ae1ee..0000000 --- a/.pythonrc +++ /dev/null @@ -1,27 +0,0 @@ -import os -from pathlib import Path - -os.environ["MPLBACKEND"] = "kitcat" - -def new_cell(cell_path: str): - cell_path = Path(cell_path) - state = Path(".state") - cell_number = 0 - - if state.exists(): - cell_number = state.read_bytes() - cell_number = int.from_bytes(cell_number) + 1 - state.write_bytes(cell_number.to_bytes()) - - save_path = cell_path.with_stem(cell_path.stem + '_' + str(cell_number)) - cell_path.rename(save_path) - - - -def prun(path): - if not os.path.exists(path): - print(f"Cell not found: {path}") - return - with open(path, "rb") as f: - print(exec(compile(f.read(), path, 'exec'), globals())) -