Answers.Body: <p>You will need to open a UCI connection, and then issue the following command:</p>
  <pre><code>go infinite
  </code></pre>
  <p>And then issue 'stop' to the engine when you would like to stop the search.</p>
  <p>The documentation is simple and has everything.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-08-01T21:19:11.863Z
Answers.LastActivityDate: 2021-08-01T21:19:11.863Z
Answers.UserDisplayName: SmallChess
Body: <p>I need to run infinite analysis in multiPV mode.
  How to do it right? My code doesn't work.</p>
  <pre><code>original_fen = &quot;7k/1b1r1pp1/3Bp1np/1p2P1q1/8/1PQB2P1/2R2P1P/6K1 b - - 3 23&quot; 
  original_board = chess.Board(original_fen)
  full_path = PATH + ENGINE_NAME_FIRST
  engine = chess.engine.SimpleEngine.popen_uci(full_path)
  with engine.analysis(original_board, multipv=MULTI_PV) as analysis:
  </code></pre>
  
Tags: <engines><analysis>
Title: Python-chess : How to make infinite analysis in multiPV mode?
ThreadText: # Python-chess : How to make infinite analysis in multiPV mode?
  
  (Asked by: username_0 on 2021-08-01)
  
  I need to run infinite analysis in multiPV mode.
  How to do it right? My code doesn't work.
  
  ```
  original_fen = "7k/1b1r1pp1/3Bp1np/1p2P1q1/8/1PQB2P1/2R2P1P/6K1 b - - 3 23" 
  original_board = chess.Board(original_fen)
  full_path = PATH + ENGINE_NAME_FIRST
  engine = chess.engine.SimpleEngine.popen_uci(full_path)
  with engine.analysis(original_board, multipv=MULTI_PV) as analysis:
  
  ```
  
  **Tags:** engines, analysis
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-08-01. Score: 1
  
  You will need to open a UCI connection, and then issue the following command:
  
  ```
  go infinite
  
  ```
  
  And then issue 'stop' to the engine when you would like to stop the search.
  
  The documentation is simple and has everything.
  
  
  ---
  
  