Skip to content

Commit

Permalink
test compile
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaczhang committed Jan 12, 2025
1 parent efff9fe commit 99c056c
Show file tree
Hide file tree
Showing 38 changed files with 8,613 additions and 7 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.Rproj.user
.Rhistory
.RData
.Ruserdata

/.quarto/
Empty file added .nojekyll
Empty file.
29 changes: 29 additions & 0 deletions _quarto.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
project:
type: website
output-dir: docs

website:
page-navigation: true
title: "Piepy"

navbar:
left:
- href: index.qmd
text: Home

- href: documentation/index.qmd
text: Documentation

- href: case_study/index.qmd
text: Case study

right:
- icon: github
href: https://github.com/andreaczhang/piepy

format:
html:
theme: flatly
# css: styles.css
toc: true

20 changes: 20 additions & 0 deletions case_study/index.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
title: "Case study"
listing:
- id: case
fields: [title, description]
contents:
- "rainfall.qmd"
#- "ts.qmd"
type: table
sort: false # keep original order
filter-ui: false
sort-ui: false
categories: true
---



::: {#case}
:::

19 changes: 19 additions & 0 deletions case_study/rainfall.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: "Rain fall"
format: html
jupyter: python3
---

##

You can add options to executable code like this

```{python}
import numpy as np
import matplotlib.pyplot as plt
x = np.linspace(0, 20, 100)
plt.plot(x, np.sin(x))
plt.show()
```

The `echo: false` option disables the printing of code (only output is displayed).
17 changes: 17 additions & 0 deletions code_py/test1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# this is the first test

import numpy as np
x = np.average([3, 4, 5])
print(x)

# test add new lines


def myfunction(a,b):
return a+b

#import numpy as np
import matplotlib.pyplot as plt
x = np.linspace(0, 20, 100)
plt.plot(x, np.sin(x))
plt.show()
Loading

0 comments on commit 99c056c

Please sign in to comment.