Re: [jupyter] Re: Javascript Extension to enable arbitrary control of JupyterLab

2018-12-07 Thread Florian Wetschoreck
ng arbitrary code could have on the user's lab >> environment and system. We could consider adding a setting to the >> javascript-extension allowing users to override this behavior so that it's >> not default but possible. >> >> Feel free to open an issue on the ju

Re: [jupyter] Re: set_next_input() and execute next input from Python

2018-12-07 Thread Florian Wetschoreck
t at this point. I think you would have to > install a jupyterlab plugin to enable the necessary hooks. > > On Fri, Nov 30, 2018 at 11:13 AM Florian Wetschoreck < > florian.w...@gmail.com > wrote: > >> Small extension/clarification: >> >> I want this t

[jupyter] Re: Javascript Extension to enable arbitrary control of JupyterLab

2018-12-07 Thread Florian Wetschoreck
erride this behavior so that it's > not default but possible. > > Feel free to open an issue on the jupyterlab repo. > > Grant > > On Friday, November 30, 2018 at 3:16:09 AM UTC-6, Florian Wetschoreck > wrote: >> >> Hi, >> >> there are good reasons why curre

[jupyter] set_next_input() and execute next input from Python

2018-11-30 Thread Florian Wetschoreck
Hi, I want to set the input for the next cell and afterwards execute the next cell. Currently, I can write in my Python cell: get_ipython().set_next_input("print('Hello World')") But this only fills the next input. How can I also execute the next cell from my current cell using Python? Any

[jupyter] Javascript Extension to enable arbitrary control of JupyterLab

2018-11-30 Thread Florian Wetschoreck
Hi, there are good reasons why currently it is not allowed to execute arbitrary Javascript in JupyterLab. Also, there is a fix with the javascript extension package which exposes the window, document and element objects. https://github.com/jupyterlab/jupyterlab/pull/4515 However, we need

[jupyter] Re: set_next_input() and execute next input from Python

2018-11-30 Thread Florian Wetschoreck
Small extension/clarification: I want this to work in JupyterLab. (In JupyterNotebook I can just execute the next cell with Javascript.) Am Freitag, 30. November 2018 11:10:48 UTC+1 schrieb Florian Wetschoreck: > > Hi, > > I want to set the input for the next cell and afterw