Title: Add %ls for Windows compatibility · Issue #10582 · ipython/ipython · GitHub
Open Graph Title: Add %ls for Windows compatibility · Issue #10582 · ipython/ipython
X Title: Add %ls for Windows compatibility · Issue #10582 · ipython/ipython
Description: IPython line magics have almost everything needed for cross-platform scripting, except basic %ls command, relying on system !ls instead, which is absent on Windows. In [4]: !ls 'ls' is not recognized as an internal or external command, o...
Open Graph Description: IPython line magics have almost everything needed for cross-platform scripting, except basic %ls command, relying on system !ls instead, which is absent on Windows. In [4]: !ls 'ls' is not recogniz...
X Description: IPython line magics have almost everything needed for cross-platform scripting, except basic %ls command, relying on system !ls instead, which is absent on Windows. In [4]: !ls 'ls' is not ...
Opengraph URL: https://github.com/ipython/ipython/issues/10582
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add %ls for Windows compatibility","articleBody":"IPython [line magics](https://ipython.readthedocs.io/en/stable/interactive/magics.html#line-magics) have almost everything needed for cross-platform scripting, except basic `%ls` command, relying on system `!ls` instead, which is absent on Windows.\r\n\r\n```\r\nIn [4]: !ls\r\n'ls' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n```\r\n\r\nReturn list of directory contents:\r\n```\r\n%ls [PATTERN]\r\n```\r\n\r\nAnd protect from:\r\n```\r\nroot@lx:~# ls *.rsh\r\nls: cannot access '*.rsh': No such file or directory\r\n```\r\nhttps://unix.stackexchange.com/questions/102286/ls-gives-no-such-file-or-directory-message","author":{"url":"https://github.com/techtonik","@type":"Person","name":"techtonik"},"datePublished":"2017-05-22T10:45:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/10582/ipython/issues/10582"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d940a271-d05f-42b8-f93e-7d6c377832ae |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9472:372BA:4A06D3:648410:6A4D60C6 |
| html-safe-nonce | 778fd07cbe77968bbde0c8b9cc7e4b7af34625f131168a827f47aa13b627b70a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDcyOjM3MkJBOjRBMDZEMzo2NDg0MTA6NkE0RDYwQzYiLCJ2aXNpdG9yX2lkIjoiMzc5NTgyMDQzMTAzNTE4OTE4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 56da7e88d82bfdf1dd91183a04232ee3be7ff87f1b703d82c5d9e89c225bd1a5 |
| hovercard-subject-tag | issue:230355997 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ipython/ipython/10582/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6e9250a62699d8355cecb735ef77c8ebb4cbdeda1f7bd63d1e5bfe7d6ad0efc0/ipython/ipython/issues/10582 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6e9250a62699d8355cecb735ef77c8ebb4cbdeda1f7bd63d1e5bfe7d6ad0efc0/ipython/ipython/issues/10582 |
| og:image:alt | IPython line magics have almost everything needed for cross-platform scripting, except basic %ls command, relying on system !ls instead, which is absent on Windows. In [4]: !ls 'ls' is not recogniz... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | techtonik |
| hostname | github.com |
| expected-hostname | github.com |
| None | e6658d7c7808aeed776f841e0839b885fce343c9b96244be612c779298e7661e |
| turbo-cache-control | no-preview |
| go-import | github.com/ipython/ipython git https://github.com/ipython/ipython.git |
| octolytics-dimension-user_id | 230453 |
| octolytics-dimension-user_login | ipython |
| octolytics-dimension-repository_id | 658518 |
| octolytics-dimension-repository_nwo | ipython/ipython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 658518 |
| octolytics-dimension-repository_network_root_nwo | ipython/ipython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | a438513d3a22ffcd713795ed948c3e5525007665 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width