8000 Add ability to define admin dashboard plugins by philippjfr · Pull Request #3668 · holoviz/panel · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@philippjfr
Copy link
Member

Allows defining admin dashboard plugins by registering tuples of a title and function that returns a Panel object that will be rendered in the, e.g. you can do:

panel serve myapp.py --setup init.py

and then in init.py:

import panel as pn

def plugin():
    return '# My custom admin dashboard plugin'

pn.config.admin_plugins.append(('Custom Plugin', plugin))

Screen Shot 2022-07-02 at 12 55 09

@codecov
Copy link
codecov bot commented Jul 2, 2022

Codecov Report

Merging #3668 (6dad6bc) into master (de3f978) will decrease coverage by 0.00%.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##           master    #3668      +/-   ##
==========================================
- Coverage   82.21%   82.21%   -0.01%     
==========================================
  Files         205      205              
  Lines       27934    27936       +2     
==========================================
+ Hits        22966    22967       +1     
- Misses       4968     4969       +1     
Impacted Files Coverage Δ
panel/io/admin.py 0.00% <0.00%> (ø)
panel/config.py 60.00% <100.00%> (+0.11%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update de3f978...6dad6bc. Read the comment docs.

@philippjfr philippjfr merged commit 1485484 into master Jul 5, 2022
@philippjfr philippjfr deleted the admin_plugins branch July 5, 2022 11:43
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0