-
Notifications
You must be signed in to change notification settings - Fork 10
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
Updating Probability figures in Dan's chapter #29
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool. Question about the use of the <img>
tag (below).
@@ -18,7 +18,7 @@ | |||
"\n", | |||
"**Complement of an event**: The complement of an event $A$ is the event that $A$ does not occur, denoted by $A^C$. For the event $A$ defined above, $A^C$ is the event that more than half of the babies are boys, or the set of integers from 50 to 100.\n", | |||
"\n", | |||
"![](./img/venn_comp.png)\n", | |||
"<img src=\"./img/complement.png\" width=\"400\"/> \n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason to use <img>
and to set a width?
- As far as I can tell, one of the advantages to using the Markdown-native syntax is that the textbook builder detects what you're doing and ensures the image is included. With this version, none of the images are included and these tags are broken. For that reason, I think we don't really want to use
<img>
tags at all. - The width is probably fine, but generally it's nice to allow the browser to figure out the best sizing, based on the image and layout. (And if we do need to control the sizing, there might be a more dynamic way.)
I would just tweak these to work with the textbook – the Markdown syntax is both textbook-compatible and less verbose – but, let me know if there's a reason behind the particular form you used.
I changed it so that I could set a width because when I previewed it, the image was much too large. If you know a different way to make it smaller, that is ok. I just couldn’t make it work in markdown.
---
Amanda Kube, MS, PhD
Preceptor in Data Science
Data Science Institute
The University of Chicago
***@***.******@***.***>
From: Jesse London ***@***.***>
Date: Monday, November 7, 2022 at 11:29 AM
To: chicago-cdac/textbook-datascience-1 ***@***.***>
Cc: Amanda Kube ***@***.***>, Author ***@***.***>
Subject: Re: [chicago-cdac/textbook-datascience-1] Updating Probability figures in Dan's chapter (PR #29)
@jesteria requested changes on this pull request.
Cool. Question about the use of the <img> tag (below).
________________________________
In textbook/11/1/Rules_Definitions.ipynb<https://urldefense.com/v3/__https:/github.com/chicago-cdac/textbook-datascience-1/pull/29*discussion_r1015708014__;Iw!!BpyFHLRN4TMTrA!8eKfeU57HAXDfes4B5ZFzyVwuD9CZx_HcfwiKRGIxMr9GLR8Iy-B6D2JWuXkAFvQAP1eZB0ozxQ7L5_ewqOxD3g0Ng$>:
@@ -18,7 +18,7 @@
"\n",
"**Complement of an event**: The complement of an event $A$ is the event that $A$ does not occur, denoted by $A^C$. For the event $A$ defined above, $A^C$ is the event that more than half of the babies are boys, or the set of integers from 50 to 100.\n",
"\n",
- "![](./img/venn_comp.png)\n",
+ "<img src=\"./img/complement.png\" width=\"400\"/> \n",
Any reason to use <img> and to set a width?
* As far as I can tell, one of the advantages to using the Markdown-native syntax is that the textbook builder detects what you're doing and ensures the image is included. With this version, none of the images are included and these tags are broken. For that reason, I think we don't really want to use <img> tags at all.
* The width is probably fine, but generally it's nice to allow the browser to figure out the best sizing, based on the image and layout. (And if we do need to control the sizing, there might be a more dynamic way.)
I would just tweak these to work with the textbook – the Markdown syntax is both textbook-compatible and less verbose – but, let me know if there's a reason behind the particular form you used.
[image]<https://urldefense.com/v3/__https:/user-images.githubusercontent.com/530998/200374685-d70ba13b-80bc-4aa7-bfa4-f919f39ade06.png__;!!BpyFHLRN4TMTrA!8eKfeU57HAXDfes4B5ZFzyVwuD9CZx_HcfwiKRGIxMr9GLR8Iy-B6D2JWuXkAFvQAP1eZB0ozxQ7L5_ewqPnkDmazg$>
—
Reply to this email directly, view it on GitHub<https://urldefense.com/v3/__https:/github.com/chicago-cdac/textbook-datascience-1/pull/29*pullrequestreview-1170816266__;Iw!!BpyFHLRN4TMTrA!8eKfeU57HAXDfes4B5ZFzyVwuD9CZx_HcfwiKRGIxMr9GLR8Iy-B6D2JWuXkAFvQAP1eZB0ozxQ7L5_ewqNpgohizA$>, or unsubscribe<https://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AECO4REXPWUCPNV77D44QJLWHE4BDANCNFSM6AAAAAARWWGFXI__;!!BpyFHLRN4TMTrA!8eKfeU57HAXDfes4B5ZFzyVwuD9CZx_HcfwiKRGIxMr9GLR8Iy-B6D2JWuXkAFvQAP1eZB0ozxQ7L5_ewqM8m4t9Rw$>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
OK cool. For reference, the textbook-standard syntax for setting such extended attributes is using either the (HTML is otherwise not parsed by the textbook builder, rather passed directly through as text. This is mainly an issue for images, which require extra processing.) That said, there's an extension to catch As for the static width, sure, 400px seems perfectly reasonable for this layout. (The layout appears to correctly handle the images regardless of the size of the window/viewport.) If you think it helpful, I'll just see to it that the images are horizontally centered. |
* adding simulations to causality section * causality edits * changing to python notebooks * adding sampling simulations * working on sampling simulations * peer edits * constructing sampling simulations * finishing sampling simulations * working on chapter 12 * added bias variance tradeoff * bias variance tradeoff figure * separate files * remove full file * fixing plot output * editing histograms * fixing figure not plotting * changing names and headings * made edits to ch11 * ch11edits * ch12edits * fix issue with tense * Adding updated images * Changing image references * Removing old files * Removing old union image * Removing old complement image * Removing old intersection image * changing image size * Changing image size * Update Rules_Definitions.ipynb * Update Rules_Definitions.ipynb * Update Rules_Definitions.ipynb * Update Rules_Definitions.ipynb * changed image sizes * removing incorrect merge
No description provided.