Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 16:41
    jasongrout milestoned #2785
  • 16:35
    jtpio commented #2750
  • 16:32
    jasongrout milestoned #2757
  • 16:30
    jasongrout assigned #2720
  • 16:13
    andreapas79 commented #418
  • 16:03
    blois commented #317
  • 15:38
    jasongrout commented #2750
  • 15:20
    vidartf commented #2750
  • 13:36
    SylvainCorlay commented #2831
  • 13:32
    vidartf commented #2831
  • 12:54
    martinomiani commented #532
  • 07:03
    martinRenou commented #540
  • 07:01

    martinRenou on master

    Fix Choropleth class when using… Merge pull request #539 from ma… (compare)

  • 07:01
    martinRenou closed #539
  • 07:01
    martinRenou closed #409
  • 07:00
    martinRenou commented #539
  • 04:47
    RezaRob commented #317
  • 04:45
    RezaRob commented #317
umdstu
@umdstu
looking for some advice from the widget masters here.... I feel like using the jupyter-widgets in a notebook to create a UI is like using Netbeans' GUI Builder, except worse... Is there a managable way to build an actual web-app (javascript) that can hook into a notebook to run cells/functions?
i've probably way over simplifying my end goal
martinRenou
@martinRenou
Make your own widget?
You can create your own widget, writing your JavaScript UI with whichever framework you like or no framework at all. And hook it to the ipywidgets protocol to discuss with the Python side through comms
umdstu
@umdstu
alright
martinRenou
@martinRenou
we can definitely help you with that
umdstu
@umdstu
is there like a repository like there are for other frameworks with samples of things?
martinRenou
@martinRenou
if you have questions don't hesitate
Maarten Breddels
@maartenbreddels
with ipyvue(tify) you can do crazy things without setting up a lot of tooling, or @AaronWatters 's widgets
martinRenou
@martinRenou
:+1: :+1: ipyvuetify might be a great way of doing what you want
Maarten Breddels
@maartenbreddels
it supports scripts now I think, and css (scoped even)
umdstu
@umdstu
i'll check it out, thanks for the suggestion
Maarten Breddels
@maartenbreddels
umdstu
@umdstu
i can do python, and i can do web apps. but I can't do both while allowing the normal folk to write python notebook cells to do things freely
to let them explore, you know
Bas Nijholt
@basnijholt

I am using GridspecLayout to create a table of ~60 x 7. Very surprisingly, this takes about 10s 😨

At least half of the time is spent in filling the grid (see below).

Total time: 12.0157 s
File: <ipython-input-4-6e95d5522f7f>
Function: experiment_table at line 109

Line #      Hits         Time  Per Hit   % Time  Line Contents
==============================================================
   ...
   138         1       8790.0   8790.0      0.1      grid = GridspecLayout(n_rows=len(rows), n_columns=len(header_names),)
   139                                           
   140        55         99.0      1.8      0.0      for i, row in enumerate(rows):
   141       432       1291.0      3.0      0.0          for j, name in enumerate(header_names):
   142       378    6150264.0  16270.5     51.2              grid[i, j] = row.get(name, text(""))

Is this to be expected? And what can I do (if anything) to speed it up?

umdstu
@umdstu
@maartenbreddels so that's some really hot off the press stuff going on
deeplook
@deeplook
Here’s something someone else might want to ipyvuetify (or is it ipybeautify? ;) https://gist.github.com/deeplook/20c7a64eda8fc77fe020f5c644466b27
Aaron Watters
@AaronWatters
A request: It would be nice if there was a way to get a simple report of what models/views the widget subsystem thinks are installed with version numbers for jupyter lab.
@umdstu -- Please look at https://github.com/AaronWatters/jp_proxy_widget for a very simple way to import javascript functionality into the Jupyter widgets framework. Please compare the "cookiecutter hello world" example to the jp_proxy_widgets example: https://github.com/AaronWatters/jp_proxy_widget/blob/master/notebooks/hello%20proxy%20world.ipynb
umdstu
@umdstu
thanks @AaronWatters i'll take a look
i'm not sure that's the direction i'm looking to go, but in stead the other direction
an app that interacts with the notebook rather than javascript the notebook can interact with
via IPython.notebook.kernel
umdstu
@umdstu
however I'm not seeing where the IPython javascript side is independently packaged up, so perhaps i have the wrong idea
Jason Grout
@jasongrout
@umdstu - can you give us a concrete scenario you'd like to address, and how the workflow would look like from the user's point of view?

A request: It would be nice if there was a way to get a simple report of what models/views the widget subsystem thinks are installed with version numbers for jupyter lab.

Do you mean basically just a print out of what widgets have been registered in the JLab widget manager registry? as in a handle to this thing? https://github.com/jupyter-widgets/ipywidgets/blob/ac2032d2f9cb930025979462aaccac4049721648/packages/jupyterlab-manager/src/plugin.ts#L51

Do you mean a user-visible report, or something available to extension developers?
Aaron Watters
@AaronWatters
I would like a command line jupyter lab-widgets-report that prints a nice table so I can see why things don't match up.
Jason Grout
@jasongrout
It's probably more accurate to get it from the browser at runtime, as that will tell you what actually got loaded and what version it was registered as. A command-line tool wouldn't be able to tell you that.
umdstu
@umdstu
@jasongrout I'm trying to find a middle ground between a nice clean modern UI for folks to interact with while still allowing them to be able to access their code. The UI would be tailor built for a complex notebook (or related notebooks), where elements are tied to specific cells or functions.
so the web app would have multiple Components (each a UI for a notebook) tailor built for the associated notebooks.
those that tinker and explore can still tweak and modify the cells, but those that don't can use the 'production' UI for running that notebook
see the discussion in ~jupyter/jupyter I had last night
Jason Grout
@jasongrout
Sure, okay. I'm trying to connect that with what specific questions you have for us here.
umdstu
@umdstu
Yeah, I saw your comments. Probably should move this topic to that channel instead of here now that I have a better understanding of what widgets can do and what i actually want.
Sorry about that!
Vidar Tonaas Fauske
@vidartf
@jasongrout So was the plan to do the call today (in 15 min) ?
Jason Grout
@jasongrout
For some reason I thought it was 9:30 PT (which is in an hour), but I possibly just got mixed up with Daylight Savings time.
Sure, happy to get on.
give me a minute
Project Jupyter zoom...
Yes, Google seems to indicate it is at 9:30, but I do see now that the time in Paris (which I assume is the timezone for the voila call 5:30-6:30) is 5:30
I'm on the project jupyter zoom
Odile Bénassy
@zerline
Hi @vidartf where does the meeting take place?
Vidar Tonaas Fauske
@vidartf
Odile Bénassy
@zerline
doesn't seem to work for my browser(s)
Jason Grout
@jasongrout
we see you connected
can you hear us?
zoom isn't working so well right now, so we're switching over to https://whereby.com/voila-weekly?