SCIRun icon indicating copy to clipboard operation
SCIRun copied to clipboard

console multi-line parsing

Open jessdtate opened this issue 5 years ago • 6 comments

this probably relates to the fixes from #1530. When trying to execute an if statement or a for loop in the python console, the lines the context is removed, making it impossible to run these type of functions. This affects the top-level functionality in IWP and I think the triggered events.

jessdtate avatar Apr 25 '19 22:04 jessdtate

Stale issue message

github-actions[bot] avatar Oct 10 '19 00:10 github-actions[bot]

@jessdtate I'll need some examples posted--my python bug memory space is only like 24Kb

dcwhite avatar Oct 10 '19 21:10 dcwhite

this can be as simple as:

for k in range(5):
  print(k)

Trying to run code like this in the console window or top-level tab of interfacewithpython will exit out of the loop after the for k in range(5): line, so it is impossible to do significant loop or if statement.

jessdtate avatar Oct 22 '19 23:10 jessdtate

The one I wanted to use in the IWP top level tab, but could not, is

if not 'eng' in vars():
  eng = matlab.engine.start_matlab() #could be any assignment

jessdtate avatar Oct 22 '19 23:10 jessdtate

This issue is stale because it has been open 240 days with no activity. Remove the stale label or comment, or this will be closed in 60 days.

github-actions[bot] avatar Apr 12 '21 00:04 github-actions[bot]

This issue is stale because it has been open 240 days with no activity. Remove the stale label or comment, or this will be closed in 60 days.

github-actions[bot] avatar Dec 09 '21 00:12 github-actions[bot]