##// END OF EJS Templates
Fix #4777 and #7887...
Fix #4777 and #7887 The function in charge of actually converting cursor offset to CodeMirror line number and character number was actually crashing when the cursor was at the last character (loop until undefined, then access length of variable, which is undefined). This was hiding a bug in which when you would completer to a single completion pressing tab after as-you-type filtering, the completion would be completed twice. The logic that was supposed to detect whether or not all completions had a common prefix was actually faulty as the common prefix used to be a string but was then changed to an object. Hence the logic to check whether or not there was actually a common prefix was always true, even for empty string, leading to the deletion of the line (replace by '') in some cases.

File last commit:

r20287:e8dddcc1
r20538:ae7f6d6a
Show More
__init__.py
38 lines | 1.9 KiB | text/x-python | PythonLexer
Sylvain Corlay
registering core widgets
r18531 from .widget import Widget, DOMWidget, CallbackDispatcher, register
Jonathan Frederic
Register new widgets in IPython.html.widgets namespace
r14244
Jonathan Frederic
Renamed *Widget to *,...
r17598 from .widget_bool import Checkbox, ToggleButton
from .widget_button import Button
Jonathan Frederic
Remove the popup widget
r19749 from .widget_box import Box, FlexBox, HBox, VBox
Gordon Ball
Merge master
r17698 from .widget_float import FloatText, BoundedFloatText, FloatSlider, FloatProgress, FloatRangeSlider
Jonathan Frederic
Renamed *Widget to *,...
r17598 from .widget_image import Image
Gordon Ball
Merge master
r17698 from .widget_int import IntText, BoundedIntText, IntSlider, IntProgress, IntRangeSlider
Jonathan Frederic
Output Widget
r18953 from .widget_output import Output
Nicholas Bollweg
squashing the whitespace changes
r20287 from .widget_selection import RadioButtons, ToggleButtons, Dropdown, Select, SelectMultiple
Jonathan Frederic
Renamed *Widget to *,...
r17598 from .widget_selectioncontainer import Tab, Accordion
from .widget_string import HTML, Latex, Text, Textarea
Gordon Ball
s/choose/manual/g
r17923 from .interaction import interact, interactive, fixed, interact_manual
Min RK
remove Link, DirectionalLink from widgets.__init__...
r20231 from .widget_link import jslink, jsdlink
Jonathan Frederic
Renamed *Widget to *,...
r17598
# Deprecated classes
Jonathan Frederic
Renamed widgets......
r14834 from .widget_bool import CheckboxWidget, ToggleButtonWidget
Jonathan Frederic
Fixed widget imports for Python3
r14300 from .widget_button import ButtonWidget
Jonathan Frederic
Remove the popup widget
r19749 from .widget_box import ContainerWidget
Jonathan Frederic
Create base widget classes
r14670 from .widget_float import FloatTextWidget, BoundedFloatTextWidget, FloatSliderWidget, FloatProgressWidget
Jonathan Frederic
Add ImageWidget
r14449 from .widget_image import ImageWidget
Jonathan Frederic
Create base widget classes
r14670 from .widget_int import IntTextWidget, BoundedIntTextWidget, IntSliderWidget, IntProgressWidget
Jonathan Frederic
Renamed widgets......
r14834 from .widget_selection import RadioButtonsWidget, ToggleButtonsWidget, DropdownWidget, SelectWidget
Jonathan Frederic
1-to-1 widget / view mapping
r14592 from .widget_selectioncontainer import TabWidget, AccordionWidget
Jonathan Frederic
Renamed widgets......
r14834 from .widget_string import HTMLWidget, LatexWidget, TextWidget, TextareaWidget
Jonathan Frederic
Add warning to widget namespace import.
r19206
Jason Grout
Make the widget warning easier to catch by specifying the module.
r19527 # We use warn_explicit so we have very brief messages without file or line numbers.
# The concern is that file or line numbers will confuse the interactive user.
# To ignore this warning, do:
#
# from warnings import filterwarnings
# filterwarnings('ignore', module='IPython.html.widgets')
Jason Grout
Change IPython widget warning to get rid of filenames and line numbers...
r19526 from warnings import warn_explicit
__warningregistry__ = {}
warn_explicit("IPython widgets are experimental and may change in the future.",
Jason Grout
Make the widget warning easier to catch by specifying the module.
r19527 FutureWarning, '', 0, module = 'IPython.html.widgets',
registry = __warningregistry__, module_globals = globals)