0

i'm using pyches and ipywidgets what i would like to do is have a jupyternotebook cell's output split horizontally so that on the left i show the board on the right i show the past entered moves, allthough my varaibles are fine i just cannot get a split output.

import chess, re
from ipywidgets import HBox, Output, VBox
from IPython.display import display

while not board.is_game_over():
  #clear_output(wait=True)
  #display(board)

   output1 = Output()
   with output1:
      display(board)
   output2 = Output()
   with output2:
      display(legal_moves)

   two_columns = HBox([output1, output2])
   display(two_columns)   

i think this should be possible however the pychess output is much more advanced showing a real board (svg i guess) as compared to printing the past moves thats a simple print command, so i am not sure if this is the right way ?

Peter
  • 2,043
  • 1
  • 21
  • 45

0 Answers0