Mathematica tutorial deprecated code

23 views
Skip to first unread message

chris

unread,
Apr 5, 2021, 9:13:10 PM4/5/21
to netlogo-devel
Although there are certainly more modern ways to link to NetLogo, I find the Mathematica link useful with students.

In the section "Comparing Empirical and Analytic Distributions in GasLab" of the Mathematica link tutorial, the first command Needs["Histograms"]; generates an error. I believe the fix is to delete it along with the comment that proceeds it. Then, later on, replace the command empirical = Histogram[speeds, HistogramScale -> 1]; with something like empirical = Histogram[speeds, {1}, "PDF"]; .

On a minor note, this file is seldom updated to indicate in its "Starting NetLogo" section to indicate the current version of NetLogo. The current version is 6.2.0 yet the tutorial still uses 6.1.0 in its examples.

Chris

Jeremy Baker

unread,
Apr 29, 2021, 12:25:51 PM4/29/21
to chris, netlogo-devel
Hey Chris,

Thanks for your interest in the NetLogo Mathematica Link add-on.  Your recommendations were very helpful.  I've made the changes to the tutorial and got that code merged.  I also added a step in the tutorial to set the models folder, as the location slightly differs between macOS and Windows/Linux (as I discovered when running it).

I've posted a new version of the add-on, including the tutorial, here:  https://github.com/NetLogo/Mathematica-Link/releases/tag/6.1.1

Feel free to take a look and let me know if you notice any issues.  It should be fine to use with students, too, although obviously they'll have to download it separately until the next release of NetLogo that will include these updates.

-Jeremy


From: netlog...@googlegroups.com <netlog...@googlegroups.com> on behalf of chris <chris....@gmail.com>
Sent: Monday, April 5, 2021 8:13 PM
To: netlogo-devel <netlog...@googlegroups.com>
Subject: [netlogo-devel] Mathematica tutorial deprecated code
 
--
You received this message because you are subscribed to the Google Groups "netlogo-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netlogo-deve...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netlogo-devel/de51f222-dd08-4630-9a6b-684360143f6dn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages