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

Section 4.5.3 suggested change #49

Open
srw2k opened this issue Jan 21, 2021 · 2 comments
Open

Section 4.5.3 suggested change #49

srw2k opened this issue Jan 21, 2021 · 2 comments

Comments

@srw2k
Copy link

srw2k commented Jan 21, 2021

In Section 4.5.3, the output for the 5th code cell is ['red', 'green', 'blue', 'purple'], but shouldn't it be ['red', 'green', 'blue', 'purple', 'purple'] instead? The sentence immediately below seems problematic, too, and perhaps should read:

Notice that my_list contains “purple” twice, even though the code above only adds it once.

@bnmnetp
Copy link
Member

bnmnetp commented Jan 21, 2021

Ah, yes, that is a byproduct of using the Jupyter plugin for sphinx. It actually runs the code when we build the book... Good, 99% of the time, as it makes sure the results are actually what the code produces. But of course there is no way to tell it to run a cell twice.

We should redo this example another way.

@srw2k
Copy link
Author

srw2k commented Jan 22, 2021

I see, makes sense. BTW, this same issue appears in Section 5.2.2.

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

No branches or pull requests

2 participants