Python Daily
2.57K subscribers
1.48K photos
53 videos
2 files
38.9K links
Daily Python News
Question, Tips and Tricks, Best Practices on Python Programming Language
Find more reddit channels over at @r_channels
Download Telegram
Is there a way to cross-reference a pandas dataframe output on Jupyter Notebook?

I was reading this section:https://jupyterbook.org/en/stable/content/references.html#reference-tables

I want to create automatic references/indexes for some printed pandas df but I don't want to paste the text in the cell to use the {table} chunk. Is there a way I can directly reference the output of some Python code?

EDIT: I can't render/reproduce the glue examples from this page: https://jupyterbook.org/en/stable/content/executable/output-insert.html#the-glue-figure-directive

/r/JupyterNotebooks
https://redd.it/yg0k4r
Release: NiceGUI 1.2.7 with ui.download, easier color definitions, "aggrid from pandas dataframe" and much more

With 21 contributors the just released NiceGUI 1.2.7 is again a wonderful demonstration of the strong growing community behind our easy to use web-based GUI library for Python. NiceGUI has a very gentle learning curve while still offering the option for advanced customizations. By following a backend-first philosophy you can focus on writing Python code. All the web development details are handled behind the scenes.


### New features and enhancements
- introduce `ui.download`
- introduce color arguments for elements like ui.button that accept Quasar, Tailwind, and CSS colors
- allow running in Python’s interactive mode by auto-disabling reload
- allow creating ui.aggrid from pandas dataframe
- fix navigation links behind reverse proxy with subpath
- allow sending "leading" and/or "trailing" events when throttling
- raise an exception when hiding internal routes with app.add_static_files
- add “dark” color to ui.colors

### Documentation
- enhance Trello "drag and drop" example to use a ToDo data model
- add workaround to docs for native mode when WebView2Loader.dll fails load
- add documentation and demo about element borders inside a ui.card
- add hint about exception when running executable with no console on Windows

Of course the release also includes some bugfixes (see release notes for details). Thanks to everyone who was involved in making this release happen.

/r/Python
https://redd.it/12m03v5