Repository navigation
Implement simpler Mesa namespace - #1294
Conversation
a5fc503 to
3154676
Compare
Codecov Report
@@ Coverage Diff @@
## main #1294 +/- ##
==========================================
+ Coverage 89.02% 89.05% +0.03%
==========================================
Files 19 19
Lines 1239 1243 +4
Branches 244 244
==========================================
+ Hits 1103 1107 +4
Misses 101 101
Partials 35 35
Continue to review full report at Codecov.
|
|
This is so simple, yet a very perceptual change and I keep going back and forth. This week I will write up a quick overview of the options you outlined here and post as the #1 agenda item for the next dev session. Then I will work to get feedback via two channels: Critically I just want to make sure the contributors has some time and data to think about it and don't have to make a rash vote in the dev sessions. Does this plan make sense? |
|
@rht can you give me a common sense check on what I am sending out to key user groups...... We are planning on flattening Mesa's name space to make it easier. We have narrowed it down to two alternatives. Could you please let us know what you and your students would prefer and why. The debate is whether our time.py file and visualization.py file need context. This is backwards compatible so the current approach will continue to work. |
And also space.py The options are:
Note that the 4 options still let you import using current namespace hierarchies, and hence why they are non-breaking. If the |
|
For me Option 1) and 4) sound like good alternatives, options 2) and 3) seem a bit half-baked. I personally prefer Option 4), but another name suggestion for 1) could be ´mesa.interactive as mia´ to highlight its suitability for interactive prototyping. |
|
We got our first feedback from TU Delft: They like mesa (so no mesa.flat etc) with context. Their reasoning.... It both delineates and simplifies. It makes it explicit that you are picking a space, or time or interface, but does not overburden the user with in between layers and extra abstractions. U. of Mary Washington will give us feedback Friday. |
|
This PR is ready. I implemented both the simplified with-context and mesa.flat. |
Fresh installs now pull in ipyvue and ipyvuetify 3 (Vue 3), as Solara doesn't cap them. Solara 1.65.2 fixes the blank GridDraggable that this caused in SolaraViz, so require at least that version. In Jupyter notebooks, the Solara sidebar and fullscreen mode still don't work with ipyvuetify 3 (widgetti/solara#1292, mesa#1294; fix in mesa#1293). Solara supports both Vue versions and declines to cap them, so document installing ipyvue<3 and ipyvuetify<3 instead of capping them in Mesa. Refs mesa#4133. Backport of mesa#4170, which is still open on main. Adapted for 3.5.x: raised the existing solara>=1.57.4 floor; 3.5 has no websockets<14 pin, so that part of the context was left out. Assisted-by: Claude Opus 5.5
Fresh installs now pull in ipyvue and ipyvuetify 3 (Vue 3), as Solara doesn't cap them. Solara 1.65.2 fixes the blank GridDraggable that this caused in SolaraViz, so require at least that version. In Jupyter notebooks, the Solara sidebar and fullscreen mode still don't work with ipyvuetify 3 (widgetti/solara#1292, #1294; fix in #1293). Solara supports both Vue versions and declines to cap them, so document installing ipyvue<3 and ipyvuetify<3 instead of capping them in Mesa. Refs #4133.
This fixes #1229. This is a different solution from #1244. To see how it works, you can read the test_import_namespace.py in this PR.