Skip to content

Commit

Permalink
remove streamlit dependency from non gui elements
Browse files Browse the repository at this point in the history
also update snapshots for new plotly
  • Loading branch information
jcharkow committed Oct 1, 2024
1 parent 2b4cb5e commit 49e1b31
Show file tree
Hide file tree
Showing 29 changed files with 14,239 additions and 5,386 deletions.
6 changes: 5 additions & 1 deletion massdash/plotting/InteractivePlotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
"""

from typing import List, Optional, Literal
import streamlit as st

try:
import streamlit as st
except ImportError:
st = None

# Data modules
import numpy as np
Expand Down
6 changes: 5 additions & 1 deletion massdash/plotting/InteractiveThreeDimensionPlotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
"""

from typing import List, Tuple
import streamlit as st

try:
import streamlit as st
except ImportError:
st = None

# Data modules
import numpy as np
Expand Down
9 changes: 7 additions & 2 deletions massdash/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,13 @@
import requests
import socket
import socketserver
import streamlit as st
from streamlit.components.v1 import html

# Streamlit not avaliable if not installed with gui
try:
import streamlit as st
from streamlit.components.v1 import html
except ImportError:
st = None

from .constants import USER_PLATFORM_SYSTEM

Expand Down
Loading

0 comments on commit 49e1b31

Please sign in to comment.