Rauhan commited on
Commit
4f0e77b
·
1 Parent(s): d1364bb

UPDATE: exportToDashboard

Browse files
analyticsHub/components/__init__.py CHANGED
@@ -9,7 +9,7 @@ class REPLManager:
9
  def run(self, codeString):
10
  with contextlib.redirect_stdout(self.__stdout), contextlib.redirect_stderr(self.__stderr):
11
  try:
12
- exec(codeString, globals())
13
  except Exception:
14
  traceback.print_exc(file=self.__stderr)
15
  output, error = self.__stdout.getvalue(), self.__stderr.getvalue()
 
9
  def run(self, codeString):
10
  with contextlib.redirect_stdout(self.__stdout), contextlib.redirect_stderr(self.__stderr):
11
  try:
12
+ exec(codeString, globals(), locals())
13
  except Exception:
14
  traceback.print_exc(file=self.__stderr)
15
  output, error = self.__stdout.getvalue(), self.__stderr.getvalue()