doco
hardwire config within script, no need to setup/update global config file
import argparse
from math import pi # lgtm [py/unused-import]
import numpy as np
-import matplotlib as plt # lgtm [py/unused-import]
+import matplotlib.pyplot as plt # lgtm [py/unused-import]
from roboticstoolbox import * # lgtm [py/unused-import]
from spatialmath import * # lgtm [py/polluting-import]
from spatialmath.base import * # lgtm [py/polluting-import]
@@ -52,6 +52,10 @@ for Python
from roboticstoolbox import *
from spatialmath import *
+func/object? - show brief help
+help(func/object) - show detailed help
+func/object?? - show source code
+
""")
if args.script is not None:
@@ -60,6 +64,16 @@ if args.script is not None:
raise ValueError(f"script does not exist: {args.script}")
exec(path.read_text())
-# drop into IPython
+
+## drop into IPython
import IPython
-IPython.embed()
\ No newline at end of file
+from traitlets.config import Config
+
+# set configuration options, there are lots, see
+# https://ipython.readthedocs.io/en/stable/config/options/terminal.html
+c = Config()
+c.InteractiveShellEmbed.colors = "Linux"
+c.InteractiveShell.colors = 'Neutral'
+c.InteractiveShell.confirm_exit = False
+
+IPython.embed(config=c)
\ No newline at end of file
