Closed mducle closed 2 years ago
When running a "cell" in Spyder, the output redirection apparently doesn't work, giving an
Error writing to output stream. : iostream error
On IDAaaS, start pace_neutrons under Spyder with:
pace_neutrons
/mnt/nomachine/isis_direct_soft/pace_neutrons -s
Create a script with the following:
from pace_neutrons import Matlab m = Matlab() #%% hpc_status = m.hpc()
The #%% is a cell delimiter. The hpc_status = m.hpc() is in the second cell (index 1). Now run the cell with: (in the console):
#%%
hpc_status = m.hpc()
1
runcell(1, '/path/to/file.py')
(or press Ctrl+Enter when the hpc() line is selected).
Ctrl+Enter
hpc()
The error should appear. If you instead run the full file with:
runfile('/path/to/file.py')
(or click the green play triangle button) then everything works ok.
v0.2.0 on IDAaaS (SL7)
Issue
When running a "cell" in Spyder, the output redirection apparently doesn't work, giving an
How to reproduce
On IDAaaS, start
pace_neutrons
under Spyder with:Create a script with the following:
The
#%%
is a cell delimiter. Thehpc_status = m.hpc()
is in the second cell (index1
). Now run the cell with: (in the console):(or press
Ctrl+Enter
when thehpc()
line is selected).The error should appear. If you instead run the full file with:
(or click the green play triangle button) then everything works ok.
System details (version, OS)
v0.2.0 on IDAaaS (SL7)