From af9a62a5393fb44eca167533cbb6c2ee0f00a109 Mon Sep 17 00:00:00 2001 From: Karim shoair Date: Tue, 2 Sep 2025 15:23:15 +0300 Subject: [PATCH] fix: fix for shell imported by mistake issue (#76) --- scrapling/core/shell.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scrapling/core/shell.py b/scrapling/core/shell.py index 0125ee0..24e504c 100644 --- a/scrapling/core/shell.py +++ b/scrapling/core/shell.py @@ -20,7 +20,6 @@ from logging import ( getLevelName, ) -from IPython.terminal.embed import InteractiveShellEmbed from orjson import loads as json_loads, JSONDecodeError from scrapling import __version__ @@ -394,8 +393,7 @@ class CurlParser: else: # pragma: no cover log.error("Input must be a valid curl command string or a Request object.") - - return None + return None def show_page_in_browser(page: Selector): # pragma: no cover @@ -544,6 +542,8 @@ Type 'exit' or press Ctrl+D to exit. def start(self): # pragma: no cover """Start the interactive shell""" + from IPython.terminal.embed import InteractiveShellEmbed + # Get our namespace with application objects namespace = self.get_namespace() ipython_shell = InteractiveShellEmbed(