code: def reboot(*args):
      
      args = list(sys.argv) + list(args)
      if args[0] == 'python' or not args[0]:
          args[0] = BIN_PYTHON
      elif os.path.basename(sys.argv[0]) in ['lore', 'lore.exe']:
          args[0] = BIN_LORE
      try:
          os.execv(args[0], args)
      except Exception as e:
          if args[0] == BIN_LORE and args[1] == 'console' and JUPYTER_KERNEL_PATH:
              print(ansi.error() + ' Your jupyter kernel may be corrupt. Please remove it so lore can reinstall:\n $ rm ' + JUPYTER_KERNEL_PATH)
          raise e
docs: Reboot python in the Lore virtualenv