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

Clean up notebook Javascript #2828

Merged
merged 6 commits into from Jan 23, 2013
Merged

Clean up notebook Javascript #2828

merged 6 commits into from Jan 23, 2013

Conversation

ellisonbg
Copy link
Member

There were a number of spots where the CodeCell logic depended on the IPython.notebook object. These have been removed. I have also cleaned up some of the css that was having problems when CodeCells are embedded onto bootstrap containing pages. This will help us as we refactor the notebook to use bootstrap. Finally I have further decoupled the Kernel object from everything else and improved its reconnection logic.

var ws_url = data.ws_url;
var early = data.early;
var msg;
console.log(early);
Copy link
Member

Choose a reason for hiding this comment

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

debug msg?

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed.

I have also cleaned up some calls to console.log.
* Removed Tooltip._cmfocus as it was doing nothing.
* Removed debug console.log in notification area.
@Carreau
Copy link
Member

Carreau commented Jan 22, 2013

While you are refactoring.
Why not using a 'IPython.console.log/debug/info/warn' instead of 'console.log' that for now would be a Identity wrapper,
but that could be hooked to forward the message to the server for logging purpose ?

Unless you know a such a lib...

@Carreau
Copy link
Member

Carreau commented Jan 22, 2013

What about cell-> codecell in tooltip.js and all the place where you have a cell.kernelthat only make sens if cell is a codecell ?
In any case we might have to make even MD cell (optionally) aware of kernel for the literate part.

@Carreau
Copy link
Member

Carreau commented Jan 22, 2013

Otherwise, ok for me.

@ellisonbg
Copy link
Member Author

@Carreau I think for now I am going to leave it as cell, because tooltip only works with codecells. If the MD cells become more kernel aware, we can fix that then. Merging.

ellisonbg added a commit that referenced this pull request Jan 23, 2013
Clean up notebook Javascript
@ellisonbg ellisonbg merged commit 5916529 into ipython:master Jan 23, 2013
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
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.

None yet

3 participants