code: def get_history_without_ipython_calls(self):
          
          line_count = 0
          filtered_history = []
          for line in self.history:
              if "get_ipython()." not in line:
                  filtered_history.append(line)
                  line_count += 1
          return filtered_history, line_count
docs: Remove all lines in execution history added by iPython calls.