Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor of Notebook and Console Content Factories #1482

Merged
merged 45 commits into from Jan 17, 2017

Conversation

blink1073
Copy link
Member

@blink1073 blink1073 commented Jan 12, 2017

Renames IRenderer to IContentFactory and cleans up implementation and naming consistency down the line across Console and Notebook/Cell/Output Area.

Fixes #905. Fixes #1415. Fixes #1414.

The intent of this PR is to enable dependency injection of lower-level components into a hierarchy without subclassing any of the intermediate components. For example, one can inject a custom output area from the notebook panel level.

// Set the completer widget's anchor node to peg its position.
this._completer.anchor = this.node;

// Because a completer widget may be passed in, check if it is attached.
Copy link
Member

Choose a reason for hiding this comment

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

This comment (and the attachment check) are no longer relevant.

rawCellContentFactory?: BaseCellWidget.IContentFactory;

/**
* The factory for console wiget content. If given, this will
Copy link
Member

Choose a reason for hiding this comment

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

Typo: wiget

// Set up the completer handler.
this._completerHandler = new CellCompleterHandler({
// Because a completer widget may be passed in, check if it is attached.
if (!this._completer.isAttached) {
Copy link
Member

Choose a reason for hiding this comment

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

Same as with console, this attachment check is no longer necessary.

@blink1073 blink1073 changed the title Refactor of Notebook Content Factories Refactor of Notebook and Console Content Factories Jan 17, 2017
@blink1073
Copy link
Member Author

Not sure why Appveyor refused to build the last commit. It was right about the time I enabled my own fork on Appveyor, so I suspect it was a glitch.

@afshin
Copy link
Member

afshin commented Jan 17, 2017

Epic 👍

@afshin afshin merged commit 94ec0a3 into jupyterlab:master Jan 17, 2017
@blink1073 blink1073 deleted the cellfactory branch January 18, 2017 18:22
@lock lock bot added the status:resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion. label Aug 10, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Aug 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
maintenance pkg:console pkg:notebook status:resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion.
Projects
None yet
3 participants