Rubio's-Playing with Jupyter Notebooks and Python
Showing how I was able to work and expieriment with these
Emoji Print
It is easy to add an emoji to a message in code. However, using the emoji library or other libraries often requires you to install code on your machine. Before using a library, that is not part of Python distribution, you must install with pip
# terminal command to install library
$ pip install emoji
Collecting emoji
Downloading emoji-2.5.1.tar.gz (356 kB)
...
Successfully installed emoji-2.5.1
#!pip install emoji
from emoji import emojize
print(emojize(":thumbs_up: Python is awesome! :grinning_face:"))
👍 Python is awesome! 😀
About Me
Hello! I’m passionate about coding, sports, and family/friends. I 🚀 each day while exploring new technologies, and improving my dveryday skills
Favorite Quote: “For I consider that the sufferings of this present time are not worth comparing with the glory that is going to be revealed to us” — Romans 8:18
Custom Emojis
Here are some of my custom emojis:
| 🧑💻 Developer | 💡 Innovator | 🎨 Designer |
(I did not put this in my about.md just exploring and trying new things)
Fun Facts About Me
-
I Started sports at a young age starting with basketball then going to football 🏈🏀
-
I Lived in California my whole life while my parents lived in mexico for half their life 🇲🇽
-
My hobbys are hanging out with my friends and family, playing videogames, and watching the nfl 🏈
-
I love going to the beach, im very outgoing 🏖️
-
I have 4 pets, 2 cats and 2 dogs 🐈🐶
from emoji import emojize
# Using different emoji shortcodes
print(emojize(":red_heart: Python gets you smarter! :fire:"))
❤️ Python gets you smarter! 🔥
Here is an example of me trying to reach for data by using the bible.
I used the example of my favorite quote that I used in my about.md to pull form the pip install bible to show the verse.
import requests
from IPython.display import display, Markdown
# Specify the verse you want to retrieve
verse_reference = "Romans 8:18"
# Use the Bible API to fetch the verse
response = requests.get(f"https://bible-api.com/{verse_reference}")
# Check if the request was successful
if response.status_code == 200:
data = response.json()
# Display the verse in Jupyter
display(Markdown(f"### {data['reference']}"))
display(Markdown(data['text']))
else:
print("Error fetching the verse.")
Romans 8:18
For I consider that the sufferings of this present time are not worthy to be compared with the glory which will be revealed toward us.