Welcome to your shiny new engine for the DTU Math 1b course! This setup fixes all those annoying "Module Not Found" and "Matrix" errors so you can focus on the cool graphs.
Open your Terminal (Mac) or Anaconda Prompt (Windows). Copy, paste, and hit Enter on these commands one by one. Watch the matrix code fly by.
conda create -n math1b python=3.10 -y
conda activate math1b
pip install dtumathtools sympy matplotlib jupyter
python -m ipykernel install --user --name=math1b --display-name "Python (math1b)"
- Type
jupyter notebookin your terminal. - Open your
exercise_5.ipynbfile. - Crucial Step: Go to the top menu: Kernel โ Change Kernel โ Python (math1b).
- Run your cells!
The plotting tool is a bit picky.
- Do THIS:
u = [x, y, z](Simple Python List) โ - NOT THIS:
u = Matrix([x, y, z])(SymPy Matrix) โ
Happy Plotting! ๐