pyNetLogo | An interface to access NetLogo from Python | Development Tools library
kandi X-RAY | pyNetLogo Summary
kandi X-RAY | pyNetLogo Summary
An interface to access NetLogo from Python. The interface offers methods for executing commands and returning values from reporters. It can be used with the NetLogo graphical user interface, or without (i.e. in headless mode). pyNetLogo is currently compatible with NetLogo 5.2, 5.3, 6.0, and 6.1 and should support most NetLogo extensions. Requirements: JPype , NumPy, SciPy , pandas. Installation: Available with the pip package manager: pip install pyNetLogo, but it depends on jpype which needs to be installed separately. See the installation instructions for more details. Citation If you use this library for any academic work, please cite Jaxa-Rozen & Kwakkel (2018) PyNetLogo: Linking NetLogo with Python, Journal of Artificial Societies and Social Simulation, 21 (2) 4 DOI: 10.18564/jasss.3668.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Runs the expression until the condition is reached
- Transform a NetLogO List
- Convert a logo object to a type
- Returns a report value
- Sets the result value
- Executes a netlogo command
- Executes the given string in Netlogo
- Execute a Netlogo command
- Loads a model
- Kill the workspace
- Compiles the source
- Runs a single command in the console
- Get the result as a boolean
- Get the result as double
- Get the result as a string
pyNetLogo Key Features
pyNetLogo Examples and Code Snippets
Community Discussions
Trending Discussions on pyNetLogo
QUESTION
I want to use pyNetLogo to make a connection with NetLogo version 5.3.1. This should be done manually because by default it connects with NetLogo version 6. How can I do this?
...ANSWER
Answered 2018-Dec-31 at 12:05you can indicate the version of netlogo you are using when instantiating the NetLogoLink: https://pynetlogo.readthedocs.io/en/latest/_docs/pynetlogo.html. However, in general you should not need to do this. On what OS are you? On Windows and MacOS pyNetLogo tries to guess the netlogo version by parsing the path of NetLogo Home.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pyNetLogo
You can use pyNetLogo like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page