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
Tabs #2206
Tabs #2206
Conversation
This reverts commit 3a1a244.
@@ -0,0 +1,151 @@ | |||
#!python |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file got here by accident, it's not supposed to be here. In fact, the whole scripts/
directory under static/
shouldn't be there at all.
Hi @dlsun, this is great to see! This PR will probably need some history cleanup before merging, because unfortunately the current history is a bit of a mess and it touches files that shouldn't have been modified in the first place. But don't worry: we'll be happy to give you a hand with that, the first priority is to get the (extremely important) tab functionality working robustly, we're very excited to see progress on this front. We'll be playing with this over the next few days and providing you with more specific feedback. Thanks for contributing! |
Yes, I'm very sorry about the misplaced files and the messy history -- I Please let me know what I need to do to clean the git history; it's |
On Wed, Jul 25, 2012 at 11:47 PM, dlsun
You'll want to familiarize yourself with 'git rebase'. The tutorials You'll want to rebase this branch, removing the commits that are You can make a 'backup' branch easily by creating a new branch off |
looks cool. Please indent with space to be consistent with the rest of the code I'll look at the code later. |
}); | ||
this.element.find('#insert_worksheet_below').click(function() { | ||
IPython.notebook.insert_worksheet_below('New Sheet'); | ||
}); | ||
this.element.find('#insert_cell_above').click(function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would change bellow/above for left/right, what do you think ?
That's a lot a code... I didn't read it all yet. |
Thanks for all the suggestions. @Carreau, I like many of your Javascript suggestions, although most of the functions to handle the worksheets are adapted versions of existing functions that were handling the cells, so if we change the Javascript for the worksheets we should also change it for the cells, for consistency. I agree that getting the worksheets is a major pain. The problem is that when you reorder the tabs, the div elements corresponding to the panels don't get reordered, so when you save the notebook, it saves the worksheets in the original order. The messy code that I have is just to get the ordering of the tabs, and then fetch each div element in that order. If anyone has a better way of doing this, I'd be interested to know. I'll rebase tonight. |
Sure, but it would be better to do it separately, this PR is big enough.
Oh? you can drag to reorder ? I'll try tomorrow. |
Did you had a change to rebase and convert the tabs to spaces ? |
@Carreau, I've cleaned up the history (I ended up starting from a clean copy of master and replacing only the files that needed to be changed), and replaced tabs by spaces. |
@@ -50,8 +50,10 @@ var IPython = (function (IPython) { | |||
$('div#pager').height(pager_height); | |||
if (IPython.pager.expanded) { | |||
$('div#notebook').height(app_height-pager_height-pager_splitter_height); | |||
$('div.panel').height(app_height-pager_height-pager_splitter_height); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry i'll nitpick...
wrong indent level.
the problem at first load is due to this |
|
||
$([IPython.events]).on('set_dirty.Worksheet', function (event, data) { | ||
that.dirty = data.value; | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens when there are multiple worksheets? Triggering set_dirty.Worksheet
sets the dirty flag for all worksheets?
Same question for set_next_input.Worksheet
. What happens if data.cell
is in another worksheet?
Just curious. Why |
Trying to revive old PRs. |
I haven't dived into the code yet, but have some general comments:
|
I haven't dived into the code yet, but have some general comments:
I would go slowly.
+1 If I understand correctly custom toolbar wil allow people to customize.
Some things like tabs have to be visible, but can be smaller. |
This is important work that has been sitting for a while, but it needs to be rebased. It also needs further review. @dlsun can re rebase this so review can continue? |
I would love to see this worked into the codebase, but unfortunately I no On Tue, Dec 4, 2012 at 2:26 PM, Brian E. Granger
|
OK I am going to close this. We are using issue #1905 to track progress on this feature and have linked to this PR for future work. |
Do not continue work on this before speeking to the core developers. |
Working for the most part. Some known issues: