From 0912edc72d8b17070c5415c40342f9474a3fc740 Mon Sep 17 00:00:00 2001 From: Caceresenzo Date: Sun, 9 Apr 2023 16:54:50 +0200 Subject: [PATCH] feat(inline): remove experimental push --- crunch/inline.py | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/crunch/inline.py b/crunch/inline.py index 7eac820..b2f6580 100644 --- a/crunch/inline.py +++ b/crunch/inline.py @@ -79,43 +79,6 @@ def call_infer(self) -> pandas.DataFrame: return self.prediction - def push(self) -> pandas.DataFrame: - codes = self.module.In - - before = os.getcwd() - try: - utils.change_root() - - main_file_path = constants.CONVERTED_MAIN_PY - command.convert_cells_to_file( - [ - { - "metadata": { - "id": f"cell_{index}" - }, - "cell_type": "code", - "source": code.split("\n") - } - for index, code in enumerate(codes) - ], - main_file_path - ) - - submission = command.push( - self.session, - click.prompt("Message", default="", show_default=False), - main_file_path - ) - - command.push_summary(submission, self.session) - finally: - now = os.getcwd() - if before != now: - try: - os.chdir(before) - except: - print(f"chdir could not go back to {before}") - def load(module: typing.Any): return _Inline(module)