Skip to content

Commit acda10d

Browse files
committed
OS Mode fixes
1 parent fea89a8 commit acda10d

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

interpreter/core/computer/terminal/languages/jupyter_language.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@ def __init__(self, computer):
5050
import matplotlib
5151
matplotlib.use('{backend}')
5252
""".strip()
53+
54+
# Use Inline actually, it's better I think
55+
code = """
56+
%matplotlib inline
57+
import matplotlib.pyplot as plt
58+
""".strip()
59+
5360
for _ in self.run(code):
5461
pass
5562

interpreter/terminal_interface/profiles/defaults/llama3-os.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
# Misc settings
8181
interpreter.auto_run = True
8282
interpreter.offline = True
83+
interpreter.os = True
8384

8485
# Final message
8586
interpreter.display_message(

0 commit comments

Comments
 (0)