Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add NEST code generator helper as workaround for module reloading #791

Merged
merged 6 commits into from Jul 5, 2023

Conversation

clinssen
Copy link
Contributor

@clinssen clinssen commented Jun 24, 2022

This adds a helper function that generates modules and modules with unique IDs, bypassing the issue that NEST cannot yet do module unloading/reloading.

This will be used in interactive environments: from Jupyter notebooks and NEST Desktop.

Todo

  • Move function to NESTCodeGeneratorUtils class (as static method)
  • Use os.tmpfile to create temporary NESTML model files.
  • Adapt all Python notebook tutorials to use this function.

@clinssen clinssen marked this pull request as draft June 24, 2022 10:09
@clinssen clinssen requested a review from pnbabu July 3, 2023 18:14
@clinssen clinssen marked this pull request as ready for review July 3, 2023 18:14
Copy link
Contributor

@pnbabu pnbabu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@clinssen clinssen merged commit 6d41e59 into nest:master Jul 5, 2023
10 checks passed
@clinssen
Copy link
Contributor Author

clinssen commented Jul 5, 2023

Thanks for the review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants