A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/ipython/ipython/issues/1234/ below:

Refactor how the notebook focuses cells · Issue #1234 · ipython/ipython · GitHub

There are two abstractions related to showing cells. There is the usual JS idea of bringing the elements into focus. Then there is also the CodeMirror API for refreshing an element. The recommendation is that refresh should be called on a CodeMirror widget anytime it is brought into focus. We should also not call focus unless the element is on the page and shown. We are currently not doing this.

We need to create a method on the cell objects (possibly named refresh) that call the underlying refresh method. There should also be a refresh method on the notebook as s whole that calls the cells method.

Then anytime we unhide/focus a cell, we should call refresh.

We also need to refactor how page loading is done. The pager area should start out as hidden and the cell creation should be done without calls to focus/refresh and before the notebook is shown. After the notebook is made visible, we should make a single pass to refresh everything.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4