Skip to content

IPython notebook does not run startup scripts #6136

@marcmolla

Description

@marcmolla

Note: I am assuming that notebook should run the startup scripts, based on some comments that I found in other issues...

Issue

I am trying to test the drag&drop extension for notebook and for running the sever part I added the startup script in the startup folder of my profile. I found that the script is not executed when I run ipython notebook.
If I run ipython terminal the startup script is executed.

I review the code in my server and the startup scripts are called from InteractiveShellApp.init_code. TerminalIPythonApp inherits from InteractiveShellApp and calls the init_code method but NotebookApp does not inherits form InteractiveShellApp.

In a quick review I found the same problem in master branch.

info

versions

$ conda --version
conda 3.5.5
$ ipython --version
2.1.0

command

ipython notebook --profile=nbserver

environment

ls -lrta .ipython/profile_nbserver/startup/
total 16
-rw-rw-r-- 1 ubuntu ubuntu 371 Jul 8 19:17 README
-rw-rw-r-- 1 ubuntu ubuntu 450 Jul 14 09:52 50-start-drag-and-drop.ipy

In [4]:
import IPython
ip=IPython.get_ipython()
ip.config.ProfileDir
Out[4]:
{'location': '/home/ubuntu/.ipython/profile_nbserver'}

logs

2014-07-15 07:05:21.606 [NotebookApp] Using existing profile dir: '/home/ubuntu/
.ipython/profile_nbserver'
2014-07-15 07:05:21.614 [NotebookApp] Using MathJax from CDN: https://c328740.ss
l.cf1.rackcdn.com/mathjax/latest/MathJax.js
2014-07-15 07:05:21.629 [NotebookApp] Serving notebooks from local directory: /h
ome/ubuntu/notebooks
2014-07-15 07:05:21.629 [NotebookApp] 0 active kernels
2014-07-15 07:05:21.630 [NotebookApp] The IPython Notebook is running at: https:
//[all ip addresses on your system]:8888/
2014-07-15 07:05:21.630 [NotebookApp] Use Control-C to stop this server and shut
down all kernels (twice to skip confirmation).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions