Closed Sixzero closed 1 year ago
Crazy work right there.
Running from a notebook things should also work I would expect. Also the error is easily solvable:
File [~/.local/lib/python3.10/site-packages/loopgpt/loops/repl.py:79](~/.local/lib/python3.10/site-packages/loopgpt/loops/repl.py:79), in write_divider(big) [77](./.local/lib/python3.10/site-packages/loopgpt/loops/repl.py?line=76) def write_divider(big=False): [78](./.local/lib/python3.10/site-packages/loopgpt/loops/repl.py?line=77) char = "\u2501" if big else "\u2500" ---> [79](./.local/lib/python3.10/site-packages/loopgpt/loops/repl.py?line=78) columns = os.get_terminal_size().columns [80](./.local/lib/python3.10/site-packages/loopgpt/loops/repl.py?line=79) print(char * columns) OSError: [Errno 25] Inappropriate ioctl for device
Basically, vscode integrated notebook doesn't have this column size, so we could use some terminal default 80 chars.
Hey @Sixzero! The fix for this is already merged to main but we haven't released it yet. Will do a release tomorrow and let you know.
@Sixzero We have released the fix, please update your version of LoopGPT!
Crazy work right there.
Running from a notebook things should also work I would expect. Also the error is easily solvable:
Basically, vscode integrated notebook doesn't have this column size, so we could use some terminal default 80 chars.