16 Commits

Author SHA1 Message Date
Suchit G
0b19aa74d4
Fix syntax error in user-defined-functions docs (unecessarily capitalized) (#3336)
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-09-25 14:17:16 +00:00
ken-gravilon
f36b658f8f
Docs typo cli-code-executor.ipynb (#2909)
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-06-12 14:36:26 +00:00
R. Singh
60c665871a
Feature: Add ability to use a separate python environment in local executor (#2615)
* Add ability to use virtual environments in local executor

* Copy environment variables from parent environment

* Fix mypy errors and formatting

* Account for venv on Windows

* Use a virtual environment context object instead of path

* Add utility method to create a virtual environment

* Remove assertion using `_venv_path`

* Add tests for `create_virtual_env`

* Modify test code and add output assertion

* Modify test code and assertion

* Execute activation script before actual command on windows

* Add docs for using a virtual env
2024-05-11 06:25:20 +00:00
Gabriel Bezerra Valério
a0fffc815b
feat: add bind_dir arg to DockerCommandLineExecutor + docs update (#2309)
* add bind_dir arg and update docs

* lint
2024-04-30 20:49:04 +00:00
Eric Zhu
2df0f39b00
Update the auto_feedback_from_code_execution notebook to use code executor (#2366)
* Use code executors in notebook.

* Add custom code executor guide

* Add to gitignore

* Update

* fix links

* link

* typo

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-04-18 07:53:19 +00:00
Li Jiang
42b27b9a9d
Add isort (#2265)
* Add isort

* Apply isort on py files

* Fix circular import

* Fix format for notebooks

* Fix format

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-04-05 02:26:06 +00:00
Jack Gerrits
f467f21ec9
Fix formatting of admonitions in udf docs (#2188) 2024-03-28 13:48:24 +00:00
Jack Gerrits
5ef2dfc104
Implement User Defined Functions for Local CLI Executor (#2102)
* Implement user defined functions feature for local cli exec, add docs

* add tests, update docs

* fixes

* fix test

* add pandas test dep

* install test

* provide template as func

* formatting

* undo change

* address comments

* add test deps

* formatting

* test only in 1 env

* formatting

* remove test for local only

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-03-27 23:45:17 +00:00
James
212722cd45
missing jupyter when import JupyterCodeExecutor (#2132) 2024-03-24 05:25:46 +00:00
Jack Gerrits
e342cfcdb7
Add docs about how to use docker for when autogen itself is run in docker (#2052) 2024-03-18 17:13:28 +00:00
Jack Gerrits
83e1789a50
Fix remove -> remote (#1930)
Fix issue reported from twitternhttps://twitter.com/attila_ibs/status/1766376180662329773
2024-03-09 17:47:26 +00:00
Jack Gerrits
11b8d25426
Add warning and reorder jupyter executor docs (#1908) 2024-03-07 22:03:15 +00:00
Jack Gerrits
f4f9e6c27e
Accept path for work_dir in LocalCommandLineCodeExecutor (#1909)
* Accept path in LocalCommandLineCodeExecutor

* formatting

* fixes
2024-03-07 21:58:40 +00:00
Jack Gerrits
e9219fefc0
Implement docker based command line code executor (#1856)
* implement docker based command line code executor

* undo import

* test skips

* format

* fix type issue

* skip docker tests

* fix paths

* add docs

* Update __init__.py

* class name

* precommit

* undo twoagent change

* use relative to directly

* Update, fixes, etc.

* update doc

* Update docstring

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-03-07 18:11:52 +00:00
Jack Gerrits
a54b733533
Rename to EmbeddedIPythonCodeExecutor (#1871) 2024-03-05 19:41:46 +00:00
Jack Gerrits
0a79512ebd
Add documentation for jupyter code executor (#1809)
* Add documentation for jupyter code executor

* formatting

* move to notebooks

* formatting

* update docs, fix badge bug

* fix lints

* pprint

* stop server
2024-03-04 23:44:20 +00:00