Skip to content
Snippets Groups Projects
Verified Commit 6cc72c5a authored by Alexander Dunkel's avatar Alexander Dunkel
Browse files

Add CartoLab-Docker version report

parent 1c656214
No related branches found
No related tags found
No related merge requests found
...@@ -33,6 +33,20 @@ jupyter: ...@@ -33,6 +33,20 @@ jupyter:
<img src="https://ad.vgiscience.org/links/imgs/2019-05-23_emojimap_campus.png" style="width:800px;text-align:left;position:relative;float:left"> <img src="https://ad.vgiscience.org/links/imgs/2019-05-23_emojimap_campus.png" style="width:800px;text-align:left;position:relative;float:left">
```python tags=["hidden", "hide_code"] jupyter={"source_hidden": true}
from IPython.display import Markdown as md
from datetime import date
from pathlib import Path
today = date.today()
update_str = f"Last updated: {today.strftime('%b-%d-%Y')}"
carto_version = Path('/.version')
if carto_version.exists():
with open(carto_version, 'r') as file: app_version = file.read().split("'")[1]
display(md(f"{update_str}, [Carto-Lab Docker](https://gitlab.vgiscience.de/lbsn/tools/jupyterlab) Version {app_version}"))
else:
display(md(f"{update_str}"))
```
**1. Link the workshop environment centrally from the project folder at ZIH:** **1. Link the workshop environment centrally from the project folder at ZIH:**
......
...@@ -31,6 +31,20 @@ jupyter: ...@@ -31,6 +31,20 @@ jupyter:
</div> </div>
</div> </div>
```python tags=["hide_code", "hidden"] jupyter={"source_hidden": true}
from IPython.display import Markdown as md
from datetime import date
from pathlib import Path
today = date.today()
update_str = f"Last updated: {today.strftime('%b-%d-%Y')}"
carto_version = Path('/.version')
if carto_version.exists():
with open(carto_version, 'r') as file: app_version = file.read().split("'")[1]
display(md(f"{update_str}, [Carto-Lab Docker](https://gitlab.vgiscience.de/lbsn/tools/jupyterlab) Version {app_version}"))
else:
display(md(f"{update_str}"))
```
This is the second notebook in a series of four notebooks: This is the second notebook in a series of four notebooks:
......
...@@ -31,6 +31,20 @@ jupyter: ...@@ -31,6 +31,20 @@ jupyter:
</div> </div>
</div> </div>
```python tags=["hidden", "hide_code"] jupyter={"source_hidden": true}
from IPython.display import Markdown as md
from datetime import date
from pathlib import Path
today = date.today()
update_str = f"Last updated: {today.strftime('%b-%d-%Y')}"
carto_version = Path('/.version')
if carto_version.exists():
with open(carto_version, 'r') as file: app_version = file.read().split("'")[1]
display(md(f"{update_str}, [Carto-Lab Docker](https://gitlab.vgiscience.de/lbsn/tools/jupyterlab) Version {app_version}"))
else:
display(md(f"{update_str}"))
```
This is the third notebook in a series of four notebooks: This is the third notebook in a series of four notebooks:
...@@ -1181,9 +1195,10 @@ write_shapefile( ...@@ -1181,9 +1195,10 @@ write_shapefile(
## Create Notebook HTML ## Create Notebook HTML
```python ```python
!jupyter nbconvert --to html \ !jupyter nbconvert --to html_toc \
--output-dir=./out/ ./03_tagmaps.ipynb \ --output-dir=../resources/html/ ./03_tagmaps.ipynb \
--ExtractOutputPreprocessor.enabled=False >&- 2>&- # create single output file --template=../nbconvert.tpl \
--ExtractOutputPreprocessor.enabled=False
``` ```
## Create ZIP with all results ## Create ZIP with all results
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment