JordanBoulous / 41189-assignment-template

A Jupyter Notebook template for 41189 modelling assignments
0 stars 2 forks source link

Riot Model Code Issue #8

Open JordanBoulous opened 3 years ago

JordanBoulous commented 3 years ago

@juancastilla

Code obtained from: https://ndlib.readthedocs.io/en/latest/reference/models/dynamics/dProfileThreshold.html

I installed NDlib, although when I import the libraries into the Jupyter Notebook, it says it can not find them and an error occurs.

juancastilla commented 3 years ago

You are not installing NDlib correctly. Imports and runs without issues on my machine after installing with 'pip install ndlib' @JordanBoulous

juancastilla commented 3 years ago

Working fine here

image

image

JordanBoulous commented 3 years ago

Hey Juan. The Agent Based Model seems to be running now. However, this code still states that there is an error. I have installed the library using 'pip install ndlib' but it still does not seem to work.

juancastilla commented 3 years ago

Strange—the ndlib library is not being installed correctly. You can fix the problem by creating a new conda environment and installing all the libraries you need there. Make sure the Jupyter Notebook uses the new conda environment before running the code.

juancastilla commented 3 years ago

libraries don't work well when unless you create clean conda environments to work on.

JordanBoulous commented 3 years ago

I attempted to create a Conda environment following a tutorial found at this website https://medium.com/@nrk25693/how-to-add-your-conda-environment-to-your-jupyter-notebook-in-just-4-steps-abeab8b8d084 However, at step 1 I received this error "'conda' is not recognized as an internal or external command, operable program or batch file."