This is the repository for the Embedded and Distributed AI (Autumn 2022) course at Jönköping University.
First, make sure you have installed Python, Node.js, Git, Mosquitto MQTT Server, Visual Studio Code, and Android Studio on your computer.
- Windows: instructions and download.
- Ubuntu: instructions and download.
- MacOS: instructions and download.
- Windows/Ubuntu/MacOS download.
- Run the following command in your terminal:
npm install ijavascript -g
- Windows/Ubuntu/MacOS: instructions and downloads.
- Windows/Ubuntu/MacOS download.
- Windows: instructions and download.
- Ubuntu: instructions and download.
- MacOS: instructions and download.
- Windows/Ubuntu/MacOS download.
Then follow the steps below to download the Github repository and start working with the workshop notebooks.
- Open a terminal window:
- Windows: <Windows> + <X> followed by <A> (click "Yes").
- Ubuntu: <Ctrl> + <Alt> + <T>
- MacOS: <Cmd> + <Space>, type "Terminal" + <Return>.
- Choose a folder where you want to install the Github repository for this course, e.g. your home folder
- Windows:
cd %USERPROFILE%
- Ubuntu/MacOS:
cd ~
- Windows:
- Download the Github repository to the folder "teds20" with the command
git clone https://github.com/paga-ju/teds22_2022.git teds22
- Change to the teds22 folder by executing the command
cd teds22
- Create a Python virtual environment with the command
python -m venv .venv
- Activate the virtual environment (you should see "(.venv)" as part of your command prompt when done)
- Windows:
.venv\Scripts\activate
- Ubuntu/MacOS:
source .venv\bin\activate
- Windows:
- Install the necessary python packages in the virtual environment with the command
pip install -r requirements.txt
- Launch Visual Studio Code with the command
code .
- Wait for Visual Studio Code to start.
- In Visual Studio Code, open the Command Palette
- Windows/Ubuntu: <Ctrl> + <Shift> + <P>
- MacOS: <Cmd> + <Shift> + <P>
- Type in "Python: Select Interpreter"
- Choose Enter Interpreter Path...
- Choose Find...
- Browse to and select the Python Interpreter in your virtual environment
- Windows:
.venv\Scripts\python.exe
- Ubuntu/MacOS:
.venv/bin/python
- Windows:
- Open up a notebook in one of the Workshop1 folders, e.g. Workshop1/1_read_display_write_images.ipynb
- In the upper-right of the IDE, you will see the text "Trusted | Jupyter Server: local | Python 3.9.13 64-bit ('.venv: venv): idle" (or something similar). Click on the last part of that text, i.e. with the text "Python 3.9.13 64-bit ('.venv: venv): idle" (or similar).
- Select the Python Interpreter again that your chose in step 5 above (you should see the complete path to the interpreter as one of the choices).
Now Visual Studio Code is configured to run Python code, and Jupyter Notebooks, from your virtual environment, i.e. now you can open any notebook and execute the notebook cells.