Mathematica Link not working for versions newer than 6.2.2

I’ve reported in the netlogo-devel google group and another user has replied to that post recently. Is there an improved file for the Mathematica Link functionality that could be posted to the git repository or somewhere else?

Hi Christopher,

What operating system are you using? The Google Groups discussion suggests that the issue might be Mac-specific. It works for me in NetLogo 6.4.0 on Windows, using the following commands:

Isaac B.

Ah, that’s interesting to hear that it works for 6.4.0 on Widows. Like the recent replier to my earlier message in the Google Groups thread, I’m using Mac OS. Though, for previous versions of NetLogo it was a fix on their side. So, I’ll mke sure to send a message to the pinned email in this group, too.

Could you let me know if the attached file works? I made a change that I believe should fix the bug. Note that you will need to change the extension back to .m, because I had to change it to .txt to upload it here.

Isaac B.

NetLogo.txt (13.6 KB)

Yes, it works! I also ran through the full tutorial to check up on its functionality, with Wolfram—the application previously known as Mathematica—version 14.2.1.

It may be necessary to quit and restart Wolfram. It seemed to lock up when I went straight from File … Install to executing the <<NetLogo` command, but everything was fine afer quitting and re-opening the tutorial workbook.

Great, I’ll add the fixed script to the GitHub repository for Mathematica-Link. You can download it now, but it will also be packaged with the upcoming beta release of NetLogo 7.

Isaac B.

Thanks for getting this working! You’ve likely already tested it with NetLogo 7, but given past history I’d recommend making sure before it goes out. Also (if you haven’t already) modifying the text in the tutorial workbook. Regardless, this is great!

Yes, I’ve tested it on the latest development branch of NetLogo 7. Thanks for the heads up about the language in the tutorial workbook, it will get updated sometime before the next release.

Isaac B.

1 Like