Helium icon indicating copy to clipboard operation
Helium copied to clipboard

Configuration option to disable internal output

Open krystophny opened this issue 7 years ago • 4 comments

For those who prefer sending commands to an external qtconsole with settings "ConsoleWidget.include_other_output = True" it would be nice if one could configure Hermes not to display output inside sublime text. One way would be to not call self._init_receivers() in kernel.py:264 if this option is used.

krystophny avatar Oct 29 '18 09:10 krystophny

You mean, disable both the view output and inline phantom? It's not good to disable the line, because it should disable not only the output views / phantoms but also autocomplete and object inspection. Anyway we should be able to modify Hermes as you suggest. I'll consider it.

ngr-t avatar Oct 31 '18 11:10 ngr-t

BTW, did you try SendCode? It's a very nice package. You can run Jupyter console app in shell (not qtconsole...) and send code snippets to it. It might suite for your workflow more than Hermes.

ngr-t avatar Oct 31 '18 11:10 ngr-t

Thanks for the fast reply! To be able to use inline graphics, I need something like qtconsole.

By now it's working with my hack. I'm now even using the console of JupyterLab in the browser an attach to this session (there's also an option "view output from all client" in newer versions) which gives you an extremely nice workflow, being able to type commands on the go and access all variables.

Of course if one could use Hermes like a real console, i.e. enter commands, this would be a real alternative. But this seems to be a lot more implementation work I guess. Also there seems to be some bug that it doesn't scroll down completely when graphics are shown.

krystophny avatar Oct 31 '18 14:10 krystophny

If you don't care about autocomplete or object inspection, your modification will do the trick. I didn't imagine the usage with JupyterLab, but sounds nice.

I don't intend to make this plugin like a real console, because there are already alternatives for that (such as https://github.com/randy3k/Terminus).

Thank you for bug reporting. I'll try to fix.

ngr-t avatar Nov 01 '18 05:11 ngr-t