Skip to content

Commit

Permalink
more css, screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
bollwyvl committed Jul 14, 2024
1 parent 7c2badb commit cf663f1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

## Install

### From PyPI

> **This package is not yet released.**
>
> ```bash
Expand All @@ -30,4 +32,9 @@
## Screenshots
> TODO
| note | screenshot |
| ------------------------------------------------------------------- | :-----------------------------: |
| viewing `pyinstrument` profile data with `speedscope` and `mermaid` | [![screenshot-1]][screenshot-1] |
[screenshot-1]:
https://private-user-images.githubusercontent.com/45380/348560542-ea0f7649-e35e-482b-971b-80d54ec2678d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA5Nzg2MTcsIm5iZiI6MTcyMDk3ODMxNywicGF0aCI6Ii80NTM4MC8zNDg1NjA1NDItZWEwZjc2NDktZTM1ZS00ODJiLTk3MWItODBkNTRlYzI2NzhkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE0VDE3MzE1N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY5YTI5MTY1ODdkMDk2ODVhYzc1ZTQ5ZDNmYjAzZmI5ZjlmMzE2YmMyYTE2NDQ2NGM4YmQzMjY5YTg5NGEzYWYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.28eNu41jxBbyNIJB-KxQHFqBJJGa2MLOXbdNkjI1V00
1 change: 0 additions & 1 deletion src/ipyprofiler/widget_callgraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@

DEFAULT_MERMAID_TEMPLATE = """
%%{init: {"flowchart": {{ mermaid_options | tojson }}} }%%
flowchart {{ direction }}
{% for node in nodes -%}
Expand Down
6 changes: 6 additions & 0 deletions style/widget.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,15 @@
flex: 1;
}

.jp-OutputArea-output:has(.jprf-Pyinstrument-Tab) {
overflow-y: hidden;
}

.jprf-Pyinstrument-Tab {
margin: 0;
max-height: 100vh;
flex: 1;
overflow-y: hidden;
}

.jupyter-widgets.widget-tab.jprf-Pyinstrument-Tab > .widget-tab-contents {
Expand Down

0 comments on commit cf663f1

Please sign in to comment.