Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Max Destabilizer Rank
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
Container 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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
luke naylor latex documents
research
Max Destabilizer Rank
Commits
d24f093a
Commit
d24f093a
authored
1 year ago
by
Luke Naylor
Browse files
Options
Downloads
Patches
Plain Diff
Refactor py lib make targets and add unified target
parent
7183adfc
No related branches found
No related tags found
No related merge requests found
Pipeline
#32181
passed
1 year ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+21
-36
21 additions, 36 deletions
Makefile
with
21 additions
and
36 deletions
Makefile
+
21
−
36
View file @
d24f093a
...
...
@@ -3,51 +3,36 @@
MAINTEXFILE
=
main.tex
TEXFILES
=
${
MAINTEXFILE
}
SAGETEXSCRIPT
=
main.sagetex.sag
e
NOTEBOOKBASENAMES
=
plots_and_expressions examples characteristic_curves rank_zero_case other_P_choic
e
main.pdf
:
${TEXFILES} main.sagetex.sout.tmp
latexmk
main.sagetex.sout.tmp
:
${SAGETEXSCRIPT} plots_and_expressions.py examples.py characteristic_curves.py rank_zero_case.py other_P_choice.py
sage_artifacts
:
main.sagetex.sout.tmp
SAGETEXSCRIPT
=
main.sagetex.sage
main.sagetex.sout.tmp
:
${SAGETEXSCRIPT} notebook_py_libs
PYTHONPATH
=
./sagetexscripts/ sage
${
SAGETEXSCRIPT
}
${SAGETEXSCRIPT}
:
${TEXFILES}
latexmk
||
echo
this shoud fail
plots_and_expressions.py
:
plots_and_expressions.ipynb
jupyter nbconvert
--to
script plots_and_expressions.ipynb
mv
plots_and_expressions.py plots_and_expressions.sage
sed
-e
"/get_ipython/d"
-i
plots_and_expressions.sage
sage
--preparse
plots_and_expressions.sage
mv
plots_and_expressions.sage.py plots_and_expressions.py
examples.py
:
plots_and_expressions.py examples.ipynb
jupyter nbconvert
--to
script examples.ipynb
mv
examples.py examples.sage
sed
-e
"/get_ipython/d"
-i
examples.sage
sage
--preparse
examples.sage
mv
examples.sage.py examples.py
characteristic_curves.py
:
characteristic_curves.ipynb
jupyter nbconvert
--to
script characteristic_curves.ipynb
mv
characteristic_curves.py characteristic_curves.sage
sed
-e
"/get_ipython/d"
-i
characteristic_curves.sage
sage
--preparse
characteristic_curves.sage
mv
characteristic_curves.sage.py characteristic_curves.py
rank_zero_case.py
:
rank_zero_case.ipynb
jupyter nbconvert
--to
script rank_zero_case.ipynb
mv
rank_zero_case.py rank_zero_case.sage
sed
-e
"/get_ipython/d"
-i
rank_zero_case.sage
sage
--preparse
rank_zero_case.sage
mv
rank_zero_case.sage.py rank_zero_case.py
other_P_choice.py
:
other_P_choice.ipynb
jupyter nbconvert
--to
script other_P_choice.ipynb
mv
other_P_choice.py other_P_choice.sage
sed
-e
"/get_ipython/d"
-i
other_P_choice.sage
sage
--preparse
other_P_choice.sage
mv
other_P_choice.sage.py other_P_choice.py
# PYTHON LIBS FROM NOTEBOOKS
define
NOTEBOOK_TO_LIB_RULE
$(1).py
:
$(1).ipynb
jupyter nbconvert
--to
script
$(
1
)
.ipynb
mv
$(
1
)
.py
$(
1
)
.sage
sed
-e
"/get_ipython/d"
-i
$(
1
)
.sage
sage
--preparse
$(
1
)
.sage
mv
$(
1
)
.sage.py
$(
1
)
.py
endef
$(
foreach
_base,
$(
NOTEBOOKBASENAMES
)
,
$(
eval
$(
call NOTEBOOK_TO_LIB_RULE,
$(
_base
))))
notebook_py_libs
:
$(addsuffix .py
,
$(NOTEBOOKBASENAMES))
# MISCELANEOUS
.PHONY
:
clean nosage noappendix
clean
:
...
...
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