Skip to content

Add cheatsheet for profiling and optimising in Python#603

Open
SaranjeetKaur wants to merge 7 commits into
rstudio:mainfrom
SaranjeetKaur:profile
Open

Add cheatsheet for profiling and optimising in Python#603
SaranjeetKaur wants to merge 7 commits into
rstudio:mainfrom
SaranjeetKaur:profile

Conversation

@SaranjeetKaur

@SaranjeetKaur SaranjeetKaur commented Mar 27, 2026

Copy link
Copy Markdown

Contributed Cheatsheet Information

Cheatsheet Name: Profiling and optimising in Python
1 sentence description of the contents: Some tips to perform profiling and optimising in Python
Your Name (as you want to be credited on the website): Saranjeet Kaur Bhogal
A link to your github/website (optional): https://saranjeetkaur.github.io/About-Me/
A link to relevant package documentation (optional): https://carpentries-incubator.github.io/pando-python/
Date updated (Month YYYY format): 04 2026

Please be sure you've included the Creative Commons License:

  • Add CC-BY-SA Your Name to copywrite under the Creative Commons on the cheatsheet

Check that you have done the following:

  • Used descriptive file names, something like package-name.pdf or task-name.pdf and did not include "cheatsheet" in the title.
  • Included a PDF file of entire cheatsheet.
  • Included a PNG file of the first page size 1100 x 850 in the pngs folder (for the website thumbnail).
  • Included a Keynote or PowerPoint or similar file in the relevant folder (helps translators who want to translate your cheatsheet).

Translated Cheatsheet Information

Cheatsheet Name:
Language:
Your Name (as you want to be credited on the website):
Date created/updated (Month YYYY format):

Check that you have done the following:

  • Added the language abbreviation to the file name (ex. data-transformation_es.pdf).
  • Included a PDF file of your translated cheatsheet to the translation folders.
  • Included a Keynote or PowerPoint file for your translated cheatsheet to the translation folder.
  • Not duplicated an existing translation. If an existing translation exists, I have edited it.

Comment thread html/profile_optimise_py.qmd Outdated
SaranjeetKaur and others added 3 commits March 31, 2026 13:58
@SaranjeetKaur

Copy link
Copy Markdown
Author

@JostMigenda I've updated the cheat sheet here to include the lesson QR code. I think this completes everything needed from our side, so I will request @mine-cetinkaya-rundel to review it now.

If there is anything missing that you spot, please feel free to tag me. Thanks!

@JostMigenda

JostMigenda commented Apr 13, 2026

Copy link
Copy Markdown

Thanks for adding this @SaranjeetKaur!

Can you double-check the PNG version, though? It looks a bit squashed horizontally, as if the export used the wrong pixel dimensions.

@SaranjeetKaur

SaranjeetKaur commented Apr 13, 2026

Copy link
Copy Markdown
Author

@JostMigenda Yes, I have reduced the dimensions for the png version as they ask for 1100 X 850 in the PR instructions:

Included a PNG file of the first page size 1100 x 850 in the pngs folder (for the website thumbnail)

@JostMigenda

Copy link
Copy Markdown

Ah, I see; thanks for the explanation! The squashing looks okay for the main content and a bit awkward for the QR code (which is now no longer square); but if it’s just used as a thumbnail, that’s probably alright.

@SaranjeetKaur

SaranjeetKaur commented Apr 13, 2026

Copy link
Copy Markdown
Author

@JostMigenda (sorry for tagging you several times across PRs!)
From what I tested locally, the png would just be a thumbnail on this website and the downloadable version would be the pdf one (the pdf has the square QR code and the text on it should also be readable). Here's a screenshot of the local preview (top right has the "Download PDF" and the png is just below it):

image

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.

2 participants