add testing page

This commit is contained in:
Cheng Zhang
2024-09-05 10:59:51 -05:00
parent bafb6de280
commit 8a08257986
8 changed files with 49 additions and 8 deletions

View File

@@ -1,35 +0,0 @@
import streamlit as st
# setup page setttings
st.set_page_config(
page_title="Welcome to PythonX",
page_icon="👋",
)
# load pythonx logo
st.image("../image/PythonXPicture.png")
st.markdown("# :question: What is PythonX")
st.markdown(
""":blush: Computer programming is the art of designing and creating instructions for computers to follow and execute in the form of software programs. It involves using programming languages, algorithms, and data structures to solve problems and accomplish tasks. With the advancement of technology, programming has expanded beyond traditional computer platforms to include smartphones, smartwatches, and even automobiles. It has also become a powerful tool in other fields such as chemistry, biology, finance, and more.
\nIn this tutorial, we aim to introduce the basics of Python programming and demonstrate its utility across various fields. Our goal is not to make you an expert software developer or engineer, but rather to equip you with fundamental Python programming skills that can enhance your work in your chosen field. That's why we've named this tutorial \"PythonX\" where 'X' represents the infinite possibilities and diverse applications in various domains."""
)
st.markdown("# :question: Why Choose Python")
st.markdown(
"""
:snake: [Python](https://www.python.org/) is a high-level, widely-used programming language known for its simplicity and readability. As a general-purpose language, it is versatile enough to create a variety of software, including desktop applications, web and mobile apps, games, as well as for scientific and mathematical computing, data analysis and visualization, machine learning, and more.
:smiley: Python is also considered a **beginner-friendly** language due to its straightforward syntax, making it accessible for new programmers to learn. Furthermore, Python boasts a large and active community that provides a plethora of **libraries, frameworks, and modules**, enabling developers to perform complex tasks with minimal code.
:chart_with_upwards_trend: The language is widely utilized in **scientific and numerical computing, data science, and artificial intelligence**.
:+1: Overall, Python is a **powerful, versatile, and easy-to-learn** programming language, making it one of the most popular languages in use today.
"""
)

View File

@@ -1,3 +0,0 @@
import streamlit as st
st.title("Lesson1")

View File

@@ -1,3 +0,0 @@
import streamlit as st
st.title("Lesson2")

View File

@@ -0,0 +1,24 @@
import streamlit as st
st.title("Lesson 1: Introduction to Python")
st.markdown("# :one: From Idea to Program")
st.markdown(
"""
The following chat outlines the basic logic of computer programming. We start with a task that we want the computer to help complete.
- **Step 1**: The programmer **analyzes reuqirements** to identify the process to complete the task.
- **Step 2**: The programmer **implements** the identified process in programming code as a computer program.
- **Step 3**: The programmer **deploys** the program on the computer and let the complete complete the task and give expected outcomes.
This is a simplified outline of coding (computer programming), and additional steps may be involved depending on the task's complexity and the program.
""")
st.image("./image/CodingProcess.png")
st.markdown("# :two: First Python Program: Hello PythonX!")
st.markdown("""Now, let's try our first program, which print out "Hello PythonX" on our computer screen""")

View File

@@ -0,0 +1,4 @@
import streamlit as st
st.title("Lesson 2: Create WordClouds in Python")

View File

@@ -0,0 +1,9 @@
import streamlit as st
st.markdown("This page is used to list all references when implementing this online tutorials")
st.markdown("""
- [Emoji for Markdown](https://gist.github.com/rxaviers/7360908)"
- [Streamlit Cheat Sheet](https://cheat-sheet.streamlit.app/)
""")

8
pages/testing.py Normal file
View File

@@ -0,0 +1,8 @@
import streamlit as st
video = "https://youtu.be/HluANRwPyNo?feature=shared"
st.video(video)