Jump to content
We've recently updated our Privacy Statement, available here. ×

Iton Python api for closing the spotfire in script

Praveen Krishnamurthy

Recommended Posts

  • 2 weeks later...

This is not working me


Added the following two lines in script and tried to run script

import Spotfire.Dxp.Application


Throws the following error

Traceback (most recent call last):

File "Spotfire.Dxp.Application.IronPython20", line unknown, in ExecuteForDebugging

File "", line 2, in

NameError: name 'Close' is not defined

Microsoft.Scripting.Runtime.UnboundNameException: name 'Close' is not defined

at IronPython.Runtime.PythonContext.MissingName(SymbolId name)

at Microsoft.Scripting.Runtime.LanguageContext.LookupName(CodeContext context, SymbolId name)

at Microsoft.Scripting.Runtime.RuntimeHelpers.LookupName(CodeContext context, SymbolId name)

at $26##26(Closure , Scope , LanguageContext )

at Microsoft.Scripting.SourceUnit.Execute(Scope scope, ErrorSink errorSink)

at Spotfire.Dxp.Application.IronPython20.IronPythonScriptEngine.ExecuteForDebugging(String scriptCode, Dictionary`2 scope, Stream outputStream)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...