Re: [jupyter] numeric text description cropped

2018-03-24 Thread Jason Grout
Does this section in the docs help? https://ipywidgets.readthedocs.io/en/latest/examples/Widget%20Styling.html#Description On Sat, Mar 24, 2018 at 3:18 PM Randy Heiland wrote: > The following crops the description for the FloatText; how can I have it > not do that? Basically, I'd like to disp

[jupyter] numeric text description cropped

2018-03-24 Thread Randy Heiland
The following crops the description for the FloatText; how can I have it not do that? Basically, I'd like to display the entire description string and shorten the FloatText input box. from ipywidgets import Layout, HBox, FloatText, Label numVal = FloatText ( description= 'Enter your value',

Re: [jupyter] Using notebooks as informal packages - (non)exportable code cells

2018-03-24 Thread Tony Hirst
Ah - good idea... doh! --tony On Thursday, 22 March 2018 11:36:07 UTC, Johannes Feist wrote: > > In case you are not aware of the possibility, what I have been doing for > this case is the "standard" python approach, i.e., simply guard the part > that shouldn't run upon import with > if __name_

Re: [jupyter] Using notebooks as informal packages - (non)exportable code cells

2018-03-24 Thread Tony Hirst
Ok - thanks for that; but the last item in the if block won't be displayed as output from the cell - which is how I was testing... --tony On Thursday, 22 March 2018 11:36:07 UTC, Johannes Feist wrote: > > In case you are not aware of the possibility, what I have been doing for > this case is th

Re: [jupyter] JupyterLab support for %matplotlib notebook?

2018-03-24 Thread insearchofanswers87
The notebook is loaded from my local computer. I am not putting JavaScript in it myself. I am simply trying to use a Matplotlib FuncAnimation in the notebook and that, of course, is being translated into JavaScript. Works fine in the old interface, but is disabled in JupyterLab. On Wednesday, 2

Re: [jupyter] JupyterLab support for %matplotlib notebook?

2018-03-24 Thread Jens Nielsen
The ipympl jupyter widget https://github.com/matplotlib/jupyter-matplotlib should work in JupyterLab On Wed, 21 Mar 2018 at 22:59 Jason Grout wrote: > See https://github.com/jupyterlab/jupyterlab/issues/3118 for further > discussion of what I imagine is the issue here - that JupyterLab by defaul

Re: [jupyter] Using notebooks as informal packages - (non)exportable code cells

2018-03-24 Thread Tony Hirst
Good spot - but if I do that, then the last line in the block doesn't return a displayed output? Which I was using for testing purposes in the dev notebook? --tony On Thursday, 22 March 2018 11:36:07 UTC, Johannes Feist wrote: > > In case you are not aware of the possibility, what I have been