tap "heroku/brew" | |
tap "homebrew/bundle" | |
tap "homebrew/cask" | |
tap "homebrew/cask-fonts" | |
tap "homebrew/cask-versions" | |
tap "homebrew/core" | |
tap "mongodb/brew" | |
brew "openjdk@11" | |
brew "apache-spark" | |
brew "scala" |
# Find and update all pip packages within Python | |
# This code is dangerous but gets the job done 💀 💼 | |
import pkg_resources | |
from subprocess import call | |
ignored = {'pycurl', 'tbb', 'daal', 'gast'} | |
packages = {dist.project_name for dist in pkg_resources.working_set | |
if dist.project_name not in ignored} | |
# Update each package individually |
Do not be the person who has practiced 10,000 things once, but be the person who has practiced one thing 10,000 times.
— Intentionally misquoting Bruce Lee
- Write a lot of code. Physically type code and run it (if either part is missing, it is not quality code practice).
- Think of coding practice as a portfolio. It should be a mix:
- 40-60% Easy-for-you fundamentals. Practicing Pythonic idioms to solve common atomic problems. This develops fluency to solve novel challenges and build up to more advanced coding.
- 20-30% Difficult-but-possible problems. LeetCode and similar is good for this level.
Follow these steps:
-
Don't Panic! Relax and realize that you will solve this problem, even if it takes a little bit of messing around. Banging your head against the computer is part of your job (both as a student and as a professional programmer). Remember that the computer is doing precisely what you are telling it to do. There is no magic.
-
Determine precisely what is going on. Did you get an error message from Python? If it is a
SyntaxError
, a helpful guide is here. Also, running your code in Python 3.11 or higher has improved error messages. -
Python error messages include a stack trace. There could be a number errors throughout the stack. You read a stack trace from bottom to top. Go slowly and understand each character and each line.
If you have problems, follow these steps:
-
Don't Panic! Relax and realize that you will solve this problem, even if it takes a little bit of messing around. Banging your head against the computer is part of your job. Remember that the computer is doing precisely what you tell it to do. There is no mystery.
-
Determine precisely what is going on. Did you get an error message from Python? Is it a syntax error? If so, review the syntax of all your statements and expressions.
-
If you got an error message that has what we call a stack trace, a number of things could be wrong. You read a stack trace from bottom-to-top. Go slowly and understand each character and each line.
pip install jupyter_contrib_nbextensions
pip install jupyter_nbextensions_configurator
jupyter contrib nbextension install --user
jupyter nbextensions_configurator enable --user
-
Download the wheel called
tensorflow-2.4.1-py3-none-any.whl
located at this public google drive link:
drive.google.com/drive/folders/1oSipZLnoeQB0Awz8U68KYeCPsULy_dQ7 -
Assuming you downloaded the wheel to your Downloads folder, install it with pip:
$ pip install ~/Downloads/tensorflow-2.4.1-py3-none-any.whl --user
-
Test that it works with
ipython
at the command line: