jupyter_console icon indicating copy to clipboard operation
jupyter_console copied to clipboard

exec_files, exec_lines option gone in jupyter_console_config.py?

Open filipkilibarda opened this issue 5 years ago • 2 comments

Used to have these options in jupyter console 4.0.1 as seen below

https://jupyter-console.readthedocs.io/en/4.0.1/config_options.html

Can't find them in jupyter console 6.0.0.

Is there any way for me to execute a custom startup script in jupyter console 6.0.0?

filipkilibarda avatar Dec 08 '19 07:12 filipkilibarda

I just tried

jupyter console --InteractiveShellApp.exec_lines=['from pprint import pprint', 'pprint(dir())']

and that worked just fine for me. Are your typical startup files not executing?

farisachugthai avatar Dec 13 '19 13:12 farisachugthai

$ jupyter console --InteractiveShellApp.exec_lines=['print("hi")']

In [1]:   

Nothing prints for me. Are you on v6.0.0?

My startup files are executing, but it appears that the exec_lines option is no longer present for jupyter console 6.0.0. E.g., if you look at the docs for 6.0.0 you'll see that exec_lines is gone https://jupyter-console.readthedocs.io/en/latest/

Wondering if there's an alternative?

filipkilibarda avatar Dec 14 '19 17:12 filipkilibarda