Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to define admin dashboard plugins #3668

Merged
merged 1 commit into from
Jul 5, 2022
Merged

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant