<p>I have an application used by pretty tech-savey people and they want small island of programmability so I've used embedded Iron Python.</p>

<p>However, since IronPython 2.0 Eval() doesn't work any more. Specifically I can't both load modules and inject local variables.</p>

<p>There is a work around where I can still call Execute(), print out my answer and listen to StandardOut, but then it comes out as a string and I've lost the type.</p>

<p>Not a disaster for a long, but a huge pain for more complex objects.</p>

<p>Does anyone know how to get Eval() working again in 2.0 like it did in 1.x?</p>

<p>Cheers,
Jan</p>

Could you be a little more specific about the problem, and maybe provide a code example?  The "eval"-style functionality is definitely still present, though as you've noticed, the hosting interface has changed considerably since 1.0.
This works in beta 5:
```
```
ScriptEngine engine = Python.CreateEngine();
ScriptSource source = engine.CreateScriptSourceFromString("2 + 5", SourceCodeKind.Expression);
int result = source.Execute<int>();
```
```
By the way, using the right
```
SourceCodeKind
```
is critical here.