Skip to content

document %cd ~ expansion as the idiomatic way to change kernel directory - #30

Open
ncoop57 wants to merge 1 commit into
mainfrom
expand
Open

document %cd ~ expansion as the idiomatic way to change kernel directory#30
ncoop57 wants to merge 1 commit into
mainfrom
expand

Conversation

@ncoop57

@ncoop57 ncoop57 commented Aug 6, 2026

Copy link
Copy Markdown

Summary

  • Adds a note in skill.py explaining that %cd expands ~ and is the preferred way to change the kernel's directory over os.chdir + expanduser.
  • Clarifies that fastai file tools (fastcore, exhash, rgapi, aidialog) also expand ~ themselves, so paths with ~ pass straight through.

Why

Helps users avoid the common os.chdir(os.path.expanduser('~/...')) pattern by pointing them to the cleaner %cd magic, which already handles ~ expansion natively.

@ncoop57 ncoop57 added the enhancement New feature or request label Aug 6, 2026
@ncoop57 ncoop57 changed the title docs: document %cd ~ expansion as the idiomatic way to change kernel directory document %cd ~ expansion as the idiomatic way to change kernel directory Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant