user9436: In python-chess you can communicate with the engine on a given position. However the method presented in https://python-chess.readthedocs.io/en/latest/uci.html using the engine.go() function with only a time parameter returns just one continuation and that continuations evaluation. 
I know in most chess programs you can see the top few ranked positions and their evaluations. How can I do the same in python chess? None of the parameters in engine.go seemed to let me do that.

user26591: As the version of python-chess I'm running doesn't support chess.uci, here's what worked for me.
engine = chess.engine.SimpleEngine.popen_uci("/path/to/engine.exe")
board = chess.Board()
info = engine.analyse(board, chess.engine.Limit(time=10),multipv=20))

info is a list of InfoDict objects, each with the keys "pv" and "score", the list of moves in the line, and the evaluation respectively.

user825: You can do this by sending out MultiPV, something like:
engine = chess.uci.popen_engine(...)
engine.setoption({ "MultiPV" : multiPV})

The module will generate multiple lines for you, as an array.

9436: <p>In python-chess you can communicate with the engine on a given position. However the method presented in <a href="https://python-chess.readthedocs.io/en/latest/uci.html" rel="nofollow noreferrer">https://python-chess.readthedocs.io/en/latest/uci.html</a> using the engine.go() function with only a time parameter returns just one continuation and that continuations evaluation. </p>

<p>I know in most chess programs you can see the top few ranked positions and their evaluations. How can I do the same in python chess? None of the parameters in engine.go seemed to let me do that.</p>
 26591: <p>As the version of python-chess I'm running doesn't support chess.uci, here's what worked for me.</p>
<pre><code>engine = chess.engine.SimpleEngine.popen_uci(&quot;/path/to/engine.exe&quot;)
board = chess.Board()
info = engine.analyse(board, chess.engine.Limit(time=10),multipv=20))
</code></pre>
<p>info is a list of InfoDict objects, each with the keys &quot;pv&quot; and &quot;score&quot;, the list of moves in the line, and the evaluation respectively.</p>
 825: <p>You can do this by sending out MultiPV, something like:</p>

<pre><code>engine = chess.uci.popen_engine(...)
engine.setoption({ "MultiPV" : multiPV})
</code></pre>

<p>The module will generate multiple lines for you, as an array.</p>
