Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Fidle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Talks
Fidle
Commits
cd465aa9
Commit
cd465aa9
authored
3 years ago
by
Jean-Luc Parouty
Browse files
Options
Downloads
Patches
Plain Diff
Update coocki for Windows compatibility
parent
2dac2728
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
fidle/config.py
+1
-1
1 addition, 1 deletion
fidle/config.py
fidle/cookci.py
+5
-5
5 additions, 5 deletions
fidle/cookci.py
with
6 additions
and
6 deletions
fidle/config.py
+
1
−
1
View file @
cd465aa9
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
# ---- Version -----------------------------------------------------
# ---- Version -----------------------------------------------------
#
#
VERSION
=
'
2.0.2
7
'
VERSION
=
'
2.0.2
8
'
# ---- Default notebook name ---------------------------------------
# ---- Default notebook name ---------------------------------------
#
#
...
...
This diff is collapsed.
Click to expand it.
fidle/cookci.py
+
5
−
5
View file @
cd465aa9
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
# A simple module to run all notebooks with parameters overriding
# A simple module to run all notebooks with parameters overriding
# Jean-Luc Parouty 2021
# Jean-Luc Parouty 2021
import
sys
,
os
import
sys
,
os
,
platform
import
json
import
json
import
datetime
,
time
import
datetime
,
time
import
nbformat
import
nbformat
...
@@ -30,7 +30,7 @@ sys.path.append('..')
...
@@ -30,7 +30,7 @@ sys.path.append('..')
import
fidle.config
as
config
import
fidle.config
as
config
import
fidle.cookindex
as
cookindex
import
fidle.cookindex
as
cookindex
VERSION
=
'
1.
2
'
VERSION
=
'
1.
4.1
'
start_time
=
{}
start_time
=
{}
end_time
=
{}
end_time
=
{}
...
@@ -77,7 +77,7 @@ def run_profile(profile_name, reset=False, filter=r'.*', top_dir='..'):
...
@@ -77,7 +77,7 @@ def run_profile(profile_name, reset=False, filter=r'.*', top_dir='..'):
# ---- Report file --------------------------------------------------------
# ---- Report file --------------------------------------------------------
#
#
metadata
=
config
metadata
=
config
metadata
[
'
host
'
]
=
os
.
uname
()[
1
]
metadata
[
'
host
'
]
=
platform
.
uname
()[
1
]
metadata
[
'
profile
'
]
=
profile_name
metadata
[
'
profile
'
]
=
profile_name
report_json
=
top_dir
+
'
/
'
+
config
[
'
report_json
'
]
report_json
=
top_dir
+
'
/
'
+
config
[
'
report_json
'
]
...
@@ -223,8 +223,8 @@ def run_profile(profile_name, reset=False, filter=r'.*', top_dir='..'):
...
@@ -223,8 +223,8 @@ def run_profile(profile_name, reset=False, filter=r'.*', top_dir='..'):
# ---- Save
# ---- Save
save_dir
=
os
.
path
.
abspath
(
f
'
{
top_dir
}
/
{
output_html
}
/
{
notebook_dir
}
'
)
save_dir
=
os
.
path
.
abspath
(
f
'
{
top_dir
}
/
{
output_html
}
/
{
notebook_dir
}
'
)
os
.
makedirs
(
save_dir
,
mode
=
0o750
,
exist_ok
=
True
)
os
.
makedirs
(
save_dir
,
mode
=
0o750
,
exist_ok
=
True
)
with
open
(
f
'
{
save_dir
}
/
{
output_name
}
.html
'
,
mode
=
'
w
'
)
as
fp
:
with
open
(
f
'
{
save_dir
}
/
{
output_name
}
.html
'
,
mode
=
'
w
b
'
)
as
fp
:
fp
.
write
(
body_html
)
fp
.
write
(
body_html
.
encode
(
"
utf-8
"
)
)
print
(
f
'
- Saved
{
save_dir
}
/
{
output_name
}
.html
'
)
print
(
f
'
- Saved
{
save_dir
}
/
{
output_name
}
.html
'
)
# ---- Clean all ------------------------------------------------------
# ---- Clean all ------------------------------------------------------
...
...
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