Form inside the Zeus IDE, select the Tools, Language Shells Command Prompt menu and in the resulting screen run the following command:
Code: Select all
python -m pip install numpy scipy matplotlib
The results of that installation should result in the following output: 2. Checking the Installation
Save the following code to the numpy-test.py file:
Code: Select all
import numpy as np
arr = np.array([1, 2, 3, 4, 5])
print(arr)
print(type(arr))
Code: Select all
python numpy-test.py
Code: Select all
[1 2 3 4 5]
<class 'numpy.ndarray'>
Using the same tool window from the first step, import the seaborn package using the following command:
Code: Select all
pip install seaborn
Code: Select all
from numpy import random
import matplotlib.pyplot as plt
import seaborn as sns
sns.distplot(random.chisquare(df=1, size=1000), hist=False)
plt.show()
Code: Select all
python numpy-plot.py
The same result can be achieved by making the numpy-test.py file the active file and then using the Macro, Execute menu to run the file.
5. Autocomplete and Code Navigation
The Zeus IDE uses jedi for Python code navigation and autocompletion.
Here is an example of the auto completion: The code navigation allows the user to navigate to the symbol under the cursor.
NOTE: The first time that the jedi is called it builds a cache of the imports which can take a few seconds, meaning the first autocomplete request will be slow. But subsequent request should work as expected.
Cheers Jussi