Create an 'enderscope' virtual environment to work in:
cd ~
python3 -m venv --system-site-packages enderscope
source enderscope/bin/activate
pip install pyserial jupyter ipywidgets numpy matplotlib
jupyter notebook
Clone this repo and open the 'demo' notebook in JupyterLab.
cd ~
source enderscope/bin/activate
jupyter notebook
Note : Pay attention to the kernel In VSCode, you have to change the kernel, it has to be in enderscope. If it doesn't exist, enter the following command in the terminal :
enderscope/bin/python3 -m ipykernel install –user –name=enderscopeAnd in Jupyter Notebook, you also have to change the kernel for enderscope, Go in core -> change core
Another problem you might encounter is that the panel with the interactive buttons for controlling the printer does not appear : In VSCode, you can verify the addresses are different entering the following command in the terminal :
which pythonwhich jupyter
And to solve the problem :python -m pip install --force-reinstall jupyter
pip installation
py -m ensurepip –upgrade
Create an 'enderscope' virtual environment to work in:
python3 -m venv --system-site-packages enderscope
.\enderscope\Scripts\Activate.ps1
pip install pyserial jupyter ipywidgets numpy matplotlib
jupyter notebook
Note : Pay attention to the index of the ports[] list. An error message may appear (List Index Out of Range). In this case, refer to "Finding the Device-Port Name Mapping" below.
Enter the following command in the terminal:
python -m serial.tools.list_ports
Note : To find the specific port name of a single device Power on/Connect a single device and execute the same line of code in the terminal.
This will return the name of the connected and powered-on port only.
You need to open the 'enderscope.py' file, and access 'Panel' class. At the end, you can modify the step (in mm) in the line self.s.move_towards(b.description,1)