Skip to content

Fix for #58 - Adding support for loading startup files - #59

Open
jamdagni86 wants to merge 1 commit into
yunabe:masterfrom
jamdagni86:master
Open

Fix for #58 - Adding support for loading startup files#59
jamdagni86 wants to merge 1 commit into
yunabe:masterfrom
jamdagni86:master

Conversation

@jamdagni86

@jamdagni86 jamdagni86 commented May 8, 2018

Copy link
Copy Markdown

Loading startup files from ~/.jupyter/startup folder in sorted order. Any go file present in the folder will be loaded. Files should not have a package statement at the beginning of the file though.

zmq "github.com/pebbe/zmq4"
)

const jupyterStartupDirectoryPath = ".jupyter/startup/"

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How did you decide this path?
Do you have any reference?
I tried to find an official document about the start-up scripts in Jupyter notebook. But I can not find it. Instead, I found some documents mention .ipython/profile_default/startup.

@jamdagni86 jamdagni86 May 24, 2018

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had read somewhere that the ~/.ipython/profile_default/startup is getting deprecated in favour of ~/.jupyter/startup. However, I'm not able to find the link. Let me check.

}, nil
}

func loadStartupScripts(execQueue *executeQueue, shell *shellSocket) {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I want to keep gojupyterscaffold package as a layer to implement Jupyter protocol (http://jupyter-client.readthedocs.io/en/stable/messaging.html) and independent from Go.

Please move your code to cmd/lgo-internal.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants