sagemathinc / cocalc

CoCalc: Collaborative Calculation in the Cloud
https://CoCalc.com
Other
1.17k stars 216 forks source link

'open' command does not work from the quick mini terminal bar #230

Open johnjeng opened 8 years ago

johnjeng commented 8 years ago

open works in an actual terminal but an error: ]49;{"paths":[{"file":"FILENAME"}],"event":"open"} pops up underneath the command bar.

williamstein commented 7 years ago

I put

    open    : "The open is not yet supported\nin the miniterminal.\nSee https://github.com/sagemathinc/smc/issues/230"

in the miniterm code -- be sure to take that out when this is closed!

slel commented 1 year ago

A similar error occurs when running !open from Jupyter notebooks.

Minimal example, in a Jupyter notebook with a SageMath kernel:

p = plot(sin)
p.save('plot_sin.png')
!open plot_sin.png

Result:

]49;{"event":"open","paths":[{"file":"plot_sin.png"}]}

Having open work from Jupyter notebooks would be useful, especially for