Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NIRS_Workflow
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CEFE
PACE
NIRS_Workflow
Commits
44e510af
Commit
44e510af
authored
7 months ago
by
Nicolas Barthes
Browse files
Options
Downloads
Patches
Plain Diff
fixed interface selection propagation through pages
parent
c1cf0b75
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/pages/2-model_creation.py
+1
-1
1 addition, 1 deletion
src/pages/2-model_creation.py
src/style/header.py
+2
-0
2 additions, 0 deletions
src/style/header.py
with
3 additions
and
1 deletion
src/pages/2-model_creation.py
+
1
−
1
View file @
44e510af
...
@@ -4,6 +4,7 @@ from Modules import *
...
@@ -4,6 +4,7 @@ from Modules import *
from
Class_Mod.DATA_HANDLING
import
*
from
Class_Mod.DATA_HANDLING
import
*
add_header
()
add_header
()
add_sidebar
(
pages_folder
)
add_sidebar
(
pages_folder
)
local_css
(
css_file
/
"
style_model.css
"
)
@st.cache_data
@st.cache_data
...
@@ -17,7 +18,6 @@ def delete():
...
@@ -17,7 +18,6 @@ def delete():
elif
os
.
path
.
isdir
(
chemin_fichier
):
elif
os
.
path
.
isdir
(
chemin_fichier
):
os
.
rmdir
(
chemin_fichier
)
os
.
rmdir
(
chemin_fichier
)
delete
()
delete
()
local_css
(
css_file
/
"
style_model.css
"
)
# Initialize the variable in session state if it doesn't exist for st.cache_data
# Initialize the variable in session state if it doesn't exist for st.cache_data
if
'
counter
'
not
in
st
.
session_state
:
if
'
counter
'
not
in
st
.
session_state
:
...
...
This diff is collapsed.
Click to expand it.
src/style/header.py
+
2
−
0
View file @
44e510af
...
@@ -14,6 +14,8 @@ def add_header():
...
@@ -14,6 +14,8 @@ def add_header():
def
add_sidebar
(
pages_folder
):
def
add_sidebar
(
pages_folder
):
if
'
interface
'
not
in
st
.
session_state
:
if
'
interface
'
not
in
st
.
session_state
:
st
.
session_state
[
'
interface
'
]
=
'
simple
'
st
.
session_state
[
'
interface
'
]
=
'
simple
'
else
:
st
.
session_state
[
"
interface
"
]
=
st
.
session_state
.
get
(
'
interface
'
)
# # TOC menu on the left
# # TOC menu on the left
show_pages
(
show_pages
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment