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
Update to CodeMirror 3 and start to ship our components #3232
Conversation
This commit adds the right versions of: * Bootstrap * Jquery * less.js * CodeMirror We should always use bower to manage these packages in the future. BUT, we are not yet using this version of jquery as we still rely on an older crazy-branch version of jquery.ui.
CM3 introduced a number of changes to how various paddings are set. Because of how we change the line-height we had to set these back to the CM2 values. What a pain!
I should note that the move to CM3 fixed some bugs that were preventing us from fixing the dreaded focus-click bug. Yeah! |
def components(): | ||
"""install components with bower""" | ||
with lcd(static_dir): | ||
local('bower install') |
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.
why remove the components command? Won't we still want to use this when we update the versions we use?
Since the diff is completely impenetrable and filled with irrelevant (to us) removals and additions, I guess the only way to 'review' this is to test it in actual use. Actual code review does not seem possible. |
i don't know if my problem is related to this, but after i merged the CM3 branch i'm having trouble to get the "custom js buttons" in the toolbar. this are my files : this are my files https://gist.github.com/epifanio/5477637
|
I agree this is a tough one to review. But I think thee are a few points that deserve a check-off:
|
Just following up from IRC: this PR did not actually have any effect on the custom js mentioned above. |
sorry for the noise ... was a path mismatch on my system, between different version of ipython |
The focus-click bug is definitely still in this branch. But there were On Sun, Apr 28, 2013 at 12:09 PM, epifanio notifications@github.com wrote:
Brian E. Granger |
jquery is not listed in the dependencies in bower.json |
OK I have made all of the changes I know about: adding back the components fab function and added a README.md for notebook development. |
Update to CodeMirror 3 and start to ship our components The main purpose of this branch is the update to CodeMirror 3 and ship it as a bower component. Because CodeMirror doesn't use proper semantic version tags, we have created a CodeMirror ipython fork. The sole purpose of this fork is for us to maintain properly named tags that bower can install from. As a side effect of these changes, we are now shipping in place all bower components that we are using (bootstrap, less. codemirror, jquery). BUT, the version of jquery in components is not yet being used as we are still stuck with the old version attached to the nasty jquery.ui branch we ship. In a later PR, we will need to get rid of that jquery.ui branch (replace those capabilties with bootstrap) and then move to a stable version of jquery.ui that matches that of the jquery component depended upon by bootstrap.
Hum... lots of changes in 2 weeks, I would have preferred to be able to pitch in earlier. I'll will re-do a suggestion I made earlier, which is to consider alternative to bower, which unlike bower allow to specify a tag or even a sha of a repository in the equivalent of component.json Maintaining our own tagged codemirror branch totally goes against the point of have semantic version number and being able to specify any kind of version range. Also with this, if packager want to use another version, it is as difficult to install another version with bower than to close from the originial repository. Unless I'm missing something.. |
We are not maintaining our own codemirror repo anymore, since we realized that bower cannot be used for everything |
How are we managing CM then? Sent from my iPhone On May 1, 2013, at 8:52 AM, Min RK notifications@github.com wrote:
|
I though we were still going to use bower to manage things within our single sub module Sent from my iPhone On May 1, 2013, at 8:52 AM, Min RK notifications@github.com wrote:
|
Since we have proven that bower cannot install everything (CodeMirror, highlight.js, pagedown, prettify, etc.), that repo has two separate installation mechanisms - |
Update to CodeMirror 3 and start to ship our components The main purpose of this branch is the update to CodeMirror 3 and ship it as a bower component. Because CodeMirror doesn't use proper semantic version tags, we have created a CodeMirror ipython fork. The sole purpose of this fork is for us to maintain properly named tags that bower can install from. As a side effect of these changes, we are now shipping in place all bower components that we are using (bootstrap, less. codemirror, jquery). BUT, the version of jquery in components is not yet being used as we are still stuck with the old version attached to the nasty jquery.ui branch we ship. In a later PR, we will need to get rid of that jquery.ui branch (replace those capabilties with bootstrap) and then move to a stable version of jquery.ui that matches that of the jquery component depended upon by bootstrap.
The main purpose of this branch is the update to CodeMirror 3 and ship it as a bower component. Because CodeMirror doesn't use proper semantic version tags, we have created a CodeMirror ipython fork. The sole purpose of this fork is for us to maintain properly named tags that bower can install from.
As a side effect of these changes, we are now shipping in place all bower components that we are using (bootstrap, less. codemirror, jquery). BUT, the version of jquery in components is not yet being used as we are still stuck with the old version attached to the nasty jquery.ui branch we ship. In a later PR, we will need to get rid of that jquery.ui branch (replace those capabilties with bootstrap) and then move to a stable version of jquery.ui that matches that of the jquery component depended upon by bootstrap.
The transition to CodeMirror 3 is a bit of a pain - lots of things broke. In particular the input cell styling, tooltip and completer broke. I think I have fixed it all, but we need to go over these things with a pixel-perfect eye - alignments of all input/output text - subtle padding/margin changes, etc.
This PR replaces PR #2944