tmkit icon indicating copy to clipboard operation
tmkit copied to clipboard

How to use Python shell

Open clemense opened this issue 7 years ago • 3 comments

There is an option --python-shell which starts a CLPython shell. Are there any variables defined at this point? If yes, what are their names? Is there maybe an example how to use the shell option effectively?

clemense avatar Mar 26 '18 17:03 clemense

Nothing defined yet. See the demo domain semantics python files for some examples of packages to import. dir() works as expected. import CL followed by CL.DESCRIBE(FOO) will access the docstrings.

ndantam avatar Mar 26 '18 17:03 ndantam

Also: http://tmkit.kavrakilab.org/tmsmtpy.html

ndantam avatar Mar 26 '18 17:03 ndantam

An expanded API: http://amino.golems.org/AMINO_CLPYTHON.html A simple demo: https://github.com/golems/amino/blob/master/demo/python/baxter-view.py

ndantam avatar Mar 27 '18 10:03 ndantam