Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

Strange error on printing a var (timing?) #5

Closed
markstur opened this issue Jun 22, 2018 · 4 comments
Closed

Strange error on printing a var (timing?) #5

markstur opened this issue Jun 22, 2018 · 4 comments
Assignees

Comments

@markstur
Copy link
Contributor

I got this error:

NameErrorTraceback (most recent call last)
in ()
1 # display modified variable and the new variable
----> 2 print('{} {}'.format(a,g))

NameError: name 'g' is not defined

Then I changed it to (a, a) which worked as expected. I changed it back to (a, g) and now it works fine. So it seems like there was a delay and I can't use "Run all".

@markstur
Copy link
Contributor Author

Seeing other problems when "Run all". It looks like async things require running one cell at a time and giving them time to finish.

@ptitzler
Copy link
Contributor

ptitzler commented Jul 9, 2018

Yes, that's a timing issue. Will add a blurb to the notebook, indicating that cells should be run one at a time.

@ptitzler
Copy link
Contributor

Added Note: Run one cell at a time or unexpected results might be observed. to the top of the notebook, indicating that scheduling cell execution might result in issues.

@markstur
Copy link
Contributor Author

Closed with #8 notebook also in #9 readme

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

No branches or pull requests

2 participants