Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
Linter
Magnus Müller1f35dc3c84ed
diff --git a/browser_use/code_use/namespace.py b/browser_use/code_use/namespace.pyindex 58bc1784b..c0e9bb130 100644--- a/browser_use/code_use/namespace.py+++ b/browser_use/code_use/namespace.py@@ -24,42 +24,42 @@ logger = logging.getLogger(__name__)# Try to import optional data science librariestry:- import numpy as np # type: ignore+ import numpy as np # type: ignoreNUMPY_AVAILABLE = Trueexcept ImportError:NUMPY_AVAILABLE = Falsetry:- import pandas as pd # type: ignore+ import pandas as pd # type: ignorePANDAS_AVAILABLE = Trueexcept ImportError:PANDAS_AVAILABLE = Falsetry:- import matplotlib.pyplot as plt # type: ignore+ import matplotlib.pyplot as plt # type: ignoreMATPLOTLIB_AVAILABLE = Trueexcept ImportError:MATPLOTLIB_AVAILABLE = Falsetry:- from bs4 import BeautifulSoup # type: ignore+ from bs4 import BeautifulSoup # type: ignoreBS4_AVAILABLE = Trueexcept ImportError:BS4_AVAILABLE = Falsetry:- from pypdf import PdfReader # type: ignore+ from pypdf import PdfReader # type: ignorePYPDF_AVAILABLE = Trueexcept ImportError:PYPDF_AVAILABLE = Falsetry:- from tabulate import tabulate # type: ignore+ from tabulate import tabulate # type: ignoreTABULATE_AVAILABLE = Trueexcept ImportError: