Yes, it "toggles" only when called without argument. I have no strong
feeling about a different name if you prefere.
Le 10 févr. 2013 00:42, "Min RK" <notifications@github.com> a écrit :

> In IPython/frontend/html/notebook/static/js/cell.js:
>
> >       **/
> > -    Cell.prototype.toggle_line_numbers = function () {
> > +    Cell.prototype.toggle_line_numbers = function (value) {
> > +
> > +        if(value != undefined){
> > +            this.code_mirror.setOption('lineNumbers', value);
> > +            this.code_mirror.refresh();
> > +            return
> > +        }
> > +
>
> Just to be clear, if this sets an explicit value, it's not toggling
> anymore.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/ipython/ipython/pull/2903/files#r2954147>..
>
>