Fix indentation in example in docs#2786
Merged
jessica-mitchell merged 3 commits intonest:masterfrom Jun 22, 2023
Merged
Conversation
Contributor
|
@clinssen For code that has input / output , the This will separate the blocks of course, but I think it makes the output consistent with other blocks that use that syntax. |
Contributor
Author
|
Guideline for the use of ">>>" in Python code examples: restrict to single-line (or very-few-line) snippets of code. Code that prepares for the line containing ">>>", for instance by instantiating neurons and connections, will go without ">>>". |
jessica-mitchell
approved these changes
Jun 22, 2023
Contributor
jessica-mitchell
left a comment
There was a problem hiding this comment.
@clinssen this looks good to me, I'm gonna follow up with a PR so that the copy button des not copy the prompt symbol
Contributor
|
merging this with one reviewer as its doc related |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Also fix
np->numpyandnumpy.int64->int.The examples in the docs mix code and code output, for example, in that same file:
:: print(nest.GetDefaults('static_synapse')) {'delay': 1.0, 'has_delay': True, 'num_connections': 0, 'receptor_type': 0, 'requires_symmetric': False, 'sizeof': 32, 'synapse_model': 'static_synapse', 'weight': 1.0, 'weight_recorder': ()} nest.SetDefaults('static_synapse', {'weight': 2.5})What's the best way to split these up? Different blocks demarcated by
::?