Spaces:
Sleeping
Sleeping
Update src/index.qmd
Browse files- src/index.qmd +14 -69
src/index.qmd
CHANGED
|
@@ -1,78 +1,23 @@
|
|
| 1 |
---
|
| 2 |
-
title: "
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
| 4 |
|
| 5 |
-
|
| 6 |
-
You can also use Quarto to write [books](https://quarto.org/docs/books/), create [dashboards](https://quarto.org/docs/dashboards/), and embed web applications with [Observable](https://quarto.org/docs/interactive/ojs/) and [Shinylive](https://quarto.org/docs/blog/posts/2022-10-25-shinylive-extension/).
|
| 7 |
|
| 8 |
-
|
| 9 |
|
| 10 |
-
|
| 11 |
-
There are a couple of important files which you should pay attention to:
|
| 12 |
|
| 13 |
-
|
| 14 |
-
often unless you need to add additional system dependencies or modify the Quarto version.
|
| 15 |
-
- `requirements.txt`: This is where you should include any Python dependencies which you need for your website.
|
| 16 |
-
These are installed when the Dockerfile builds.
|
| 17 |
-
- The `src` directory contains the source files for the Quarto website. You can include Jupyter notebooks or markdown (`.qmd` or `.md`) files.
|
| 18 |
-
- `src/_quarto.yml` defines the navigation for your website. If you want to add new pages or reorganize the existing ones, you'll need to change this file.
|
| 19 |
|
|
|
|
| 20 |
|
| 21 |
-
##
|
| 22 |
-
|
| 23 |
-
1. **Clone the space locally**
|
| 24 |
-
2. **Install Quarto**: In order to render your Quarto site without Docker, we recommend installing Quarto by following the instructions on the [official Quarto website](https://quarto.org/docs/get-started/).
|
| 25 |
-
3. **Install Quarto VS Code extension**: The [Quarto VS Code Extension](https://quarto.org/docs/tools/vscode.html) includes a number of productivity tools including YAML Autocomplete, a preview button, and a visual editor. Quarto works great with VS Code, but the extension does make it easier to get the most out of Quarto.
|
| 26 |
-
4. **Edit the site**: The website files are contained in the `src` directory, and the site navigation is defined in `src/_quarto.yml`. Try editing these files and either clicking the "Preview" button in VS Code, or calling `quarto preview src` from the command line.
|
| 27 |
-
5. **Learn more about Quarto**: You can do a lot of things with Quarto, and they are all documented on the [Quarto Website](https://quarto.org/guide/). In particular, you may be interested in:
|
| 28 |
-
|
| 29 |
-
- All about building [websites](https://quarto.org/docs/websites/)
|
| 30 |
-
- Building Static [Dashboards](https://quarto.org/docs/dashboards/)
|
| 31 |
-
- How to write [books](https://quarto.org/docs/books/index.html) and [manuscripts](https://quarto.org/docs/manuscripts/)
|
| 32 |
-
- Reproducible [presentations](https://quarto.org/docs/presentations/)
|
| 33 |
-
- Including [Observable](https://quarto.org/docs/interactive/ojs/) or [Shiny](https://quarto.org/docs/interactive/shiny/) applications in your Quarto site
|
| 34 |
-
|
| 35 |
-
::: {.callout-warning}
|
| 36 |
-
It can take a couple of minutes for the Space to deploy to Hugging Face after the Docker build process completes. Two see your changes you will need to do two things:
|
| 37 |
-
|
| 38 |
-
1) Wait for your space's status to go from 'Building' to 'Running'(this is visible in the status bar above the Space)
|
| 39 |
-
2) Force-reload the web page by holding Shift and hitting the reload button in your browser.
|
| 40 |
-
:::
|
| 41 |
-
|
| 42 |
-
## Code Execution
|
| 43 |
-
|
| 44 |
-
One of the main virtues of Quarto is that it lets you combine code and text in a single document.
|
| 45 |
-
By default, if you include a code chunk in your document, Quarto will execute that code and include the output in the rendered document.
|
| 46 |
-
This is great for reproducibility and for creating documents that are always up-to-date.
|
| 47 |
-
For example you can include code which generates a plot like this:
|
| 48 |
-
|
| 49 |
-
```{python}
|
| 50 |
-
import seaborn as sns
|
| 51 |
-
import matplotlib.pyplot as plt
|
| 52 |
-
|
| 53 |
-
# Sample data
|
| 54 |
-
tips = sns.load_dataset("tips")
|
| 55 |
-
# Create a seaborn plot
|
| 56 |
-
sns.set_style("whitegrid")
|
| 57 |
-
g = sns.lmplot(x="total_bill", y="tip", data=tips, aspect=2)
|
| 58 |
-
g = g.set_axis_labels("Total bill (USD)", "Tip").set(xlim=(0, 60), ylim=(0, 12))
|
| 59 |
-
|
| 60 |
-
plt.title("Tip by Total Bill")
|
| 61 |
-
plt.show()
|
| 62 |
-
```
|
| 63 |
-
|
| 64 |
-
When the website is built the Python code will run and the output will be included in the document.
|
| 65 |
-
|
| 66 |
-
You can also include [inline code](https://quarto.org/docs/computations/inline-code.html) to insert computed values into text.
|
| 67 |
-
For example we can include the maximum tip value in the `tips` data frame like this: ``{python} tips['tip'].max()``.
|
| 68 |
-
You can control [code execution](https://quarto.org/docs/computations/execution-options.html), or [freeze code output](https://quarto.org/docs/projects/code-execution.html#freeze) to capture the output of long running computations.
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
## About the Open Source AI Cookbook
|
| 72 |
-
|
| 73 |
-
To provide a realistic example of how Quarto can help you organize long-form documentation,
|
| 74 |
-
we've implemented the Hugging Face [Open-Source AI Cookbook](https://github.com/huggingface/cookbook) in Quarto.
|
| 75 |
-
The Open-Source AI Cookbook is a collection of notebooks illustrating practical aspects of building AI applications and solving various machine learning tasks using open-source tools and models.
|
| 76 |
-
You can read more about it, or contribute your own Notebook on the [Github Repo](https://github.com/huggingface/cookbook)
|
| 77 |
-
|
| 78 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: "Welcome to Majestic Coding"
|
| 3 |
+
format: html
|
| 4 |
+
include-before: |
|
| 5 |
+
<link rel="stylesheet" href="styles.css">
|
| 6 |
---
|
| 7 |
|
| 8 |
+
# Welcome to Majestic Coding
|
|
|
|
| 9 |
|
| 10 |
+
Welcome to my space where coding meets creativity. Dive into tutorials, tips, and insights on software development, data science, and more on my [YouTube channel](https://www.youtube.com/@majesticcoding/videos).
|
| 11 |
|
| 12 |
+
## Support My Work
|
|
|
|
| 13 |
|
| 14 |
+
Your support enables me to continue creating high-quality content and tutorials. Consider sponsoring me on GitHub.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
+
<iframe src="https://github.com/sponsors/mattmajestic/card" title="Sponsor mattmajestic" height="225" width="600" style="border: 0;"></iframe>
|
| 17 |
|
| 18 |
+
## Connect With Me
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
+
- [YouTube](https://www.youtube.com/@majesticcoding/videos) for video tutorials and coding sessions.
|
| 21 |
+
- [LinkedIn](https://www.linkedin.com/in/matthew-majestic) for professional connections and updates.
|
| 22 |
+
- [GitHub](https://github.com/mattmajestic) to explore my projects and contributions.
|
| 23 |
+
- [LeetCode](https://leetcode.com/mattmajestic/) for coding challenges and solutions.
|