Skip to content

Commit

Permalink
Patch 1 (#1)
Browse files Browse the repository at this point in the history
* Update pyproject.toml: bump pyinstrument version to 4.2.0 for python 3.11/3.12 compat

As discussed in jrieke#2

* Update __init__.py: fix issue jrieke#3 by importing the components bit the newer way.

* Update pyproject.toml: bump patch version for changes

* Update requirements.txt: bump patch version for changes
  • Loading branch information
wyattscarpenter authored Aug 11, 2024
1 parent 79ed6a0 commit d829201
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
streamlit-profiler==0.2.4
streamlit-profiler==0.2.5
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "streamlit-profiler"
version = "0.2.4"
version = "0.2.5"
description = "Runtime profiler for Streamlit, powered by pyinstrument"
authors = ["Johannes Rieke <[email protected]>"]
license = "MIT"
Expand All @@ -10,7 +10,7 @@ homepage = "https://github.com/jrieke/streamlit-profiler"
[tool.poetry.dependencies]
python = "^3.7"
streamlit = "^1.0.0"
pyinstrument = "==4.1.1"
pyinstrument = "==4.2.0"

[tool.poetry.dev-dependencies]
black = "^21.12b0"
Expand Down
4 changes: 2 additions & 2 deletions streamlit_profiler/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import streamlit as st
import streamlit.components.v1 as components
from pyinstrument import Profiler as OriginalProfiler


Expand Down Expand Up @@ -79,6 +79,6 @@ def stop(self):
# html = html.replace(".margins{", ".margins{overflow:scroll;")

# Display modified HTML report in iframe.
st.components.v1.html(html, height=600)
components.html(html, height=600)

return session

0 comments on commit d829201

Please sign in to comment.