René's URL Explorer Experiment


Title: IPython 5 breaks Emacs behaviour on Windows · Issue #9725 · ipython/ipython · GitHub

Open Graph Title: IPython 5 breaks Emacs behaviour on Windows · Issue #9725 · ipython/ipython

X Title: IPython 5 breaks Emacs behaviour on Windows · Issue #9725 · ipython/ipython

Description: Hi all, I have successfully used IPython from within an Emacs buffer in the past, usually by using the jupyter console command. My basic config uses the following: (setq-default python-shell-interpreter "C:/Python34/Scripts/jupyter.exe" ...

Open Graph Description: Hi all, I have successfully used IPython from within an Emacs buffer in the past, usually by using the jupyter console command. My basic config uses the following: (setq-default python-shell-interp...

X Description: Hi all, I have successfully used IPython from within an Emacs buffer in the past, usually by using the jupyter console command. My basic config uses the following: (setq-default python-shell-interp...

Opengraph URL: https://github.com/ipython/ipython/issues/9725

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"IPython 5 breaks Emacs behaviour on Windows","articleBody":"Hi all, I have successfully used IPython from within an Emacs buffer in the past, usually by using the `jupyter console` command. My basic config uses the following:\n\n```\n(setq-default python-shell-interpreter \"C:/Python34/Scripts/jupyter.exe\"\n              python-shell-interpreter-args \"console\")\n```\n\nThe problem seems to be that the latest version of IPython breaks this integration, as the following error message / traceback appears:\n\n```\nTraceback (most recent call last):\n  File \"c:\\python34\\lib\\runpy.py\", line 170, in _run_module_as_main\n    \"__main__\", mod_spec)\n  File \"c:\\python34\\lib\\runpy.py\", line 85, in _run_code\n    exec(code, run_globals)\n  File \"c:\\Python34\\Scripts\\ipython.exe\\__main__.py\", line 9, in \u003cmodule\u003e\n  File \"c:\\python34\\lib\\site-packages\\IPython\\__init__.py\", line 119, in start_ipython\n    return launch_new_instance(argv=argv, **kwargs)\n  File \"c:\\python34\\lib\\site-packages\\traitlets\\config\\application.py\", line 595, in launch_instance\n    app.initialize(argv)\n  File \"\u003cdecorator-gen-110\u003e\", line 2, in initialize\n  File \"c:\\python34\\lib\\site-packages\\traitlets\\config\\application.py\", line 74, in catch_config_error\n    return method(app, *args, **kwargs)\n  File \"c:\\python34\\lib\\site-packages\\IPython\\terminal\\ipapp.py\", line 300, in initialize\n    super(TerminalIPythonApp, self).initialize(argv)\n  File \"\u003cdecorator-gen-7\u003e\", line 2, in initialize\n  File \"c:\\python34\\lib\\site-packages\\traitlets\\config\\application.py\", line 74, in catch_config_error\n    return method(app, *args, **kwargs)\n  File \"c:\\python34\\lib\\site-packages\\IPython\\core\\application.py\", line 446, in initialize\n    self.parse_command_line(argv)\n  File \"c:\\python34\\lib\\site-packages\\IPython\\terminal\\ipapp.py\", line 295, in parse_command_line\n    return super(TerminalIPythonApp, self).parse_command_line(argv)\n  File \"\u003cdecorator-gen-4\u003e\", line 2, in parse_command_line\n  File \"c:\\python34\\lib\\site-packages\\traitlets\\config\\application.py\", line 74, in catch_config_error\n    return method(app, *args, **kwargs)\n  File \"c:\\python34\\lib\\site-packages\\traitlets\\config\\application.py\", line 488, in parse_command_line\n    return self.initialize_subcommand(subc, subargv)\n  File \"c:\\python34\\lib\\site-packages\\IPython\\core\\application.py\", line 236, in initialize_subcommand\n    return super(BaseIPythonApplication, self).initialize_subcommand(subc, argv)\n  File \"\u003cdecorator-gen-3\u003e\", line 2, in initialize_subcommand\n  File \"c:\\python34\\lib\\site-packages\\traitlets\\config\\application.py\", line 74, in catch_config_error\n    return method(app, *args, **kwargs)\n  File \"c:\\python34\\lib\\site-packages\\traitlets\\config\\application.py\", line 426, in initialize_subcommand\n    self.subapp.initialize(argv)\n  File \"\u003cdecorator-gen-114\u003e\", line 2, in initialize\n  File \"c:\\python34\\lib\\site-packages\\traitlets\\config\\application.py\", line 74, in catch_config_error\n    return method(app, *args, **kwargs)\n  File \"c:\\python34\\lib\\site-packages\\jupyter_console\\app.py\", line 137, in initialize\n    self.init_shell()\n  File \"c:\\python34\\lib\\site-packages\\jupyter_console\\app.py\", line 110, in init_shell\n    client=self.kernel_client,\n  File \"c:\\python34\\lib\\site-packages\\traitlets\\config\\configurable.py\", line 412, in instance\n    inst = cls(*args, **kwargs)\n  File \"c:\\python34\\lib\\site-packages\\jupyter_console\\ptshell.py\", line 252, in __init__\n    self.init_prompt_toolkit_cli()\n  File \"c:\\python34\\lib\\site-packages\\jupyter_console\\ptshell.py\", line 404, in init_prompt_toolkit_cli\n    self.pt_cli = CommandLineInterface(app, eventloop=self._eventloop)\n  File \"c:\\python34\\lib\\site-packages\\prompt_toolkit\\interface.py\", line 80, in __init__\n    self.output = output or create_output()\n  File \"c:\\python34\\lib\\site-packages\\prompt_toolkit\\shortcuts.py\", line 114, in create_output\n    return Win32Output(stdout)\n  File \"c:\\python34\\lib\\site-packages\\prompt_toolkit\\terminal\\win32_output.py\", line 80, in __init__\n    info = self.get_win32_screen_buffer_info()\n  File \"c:\\python34\\lib\\site-packages\\prompt_toolkit\\terminal\\win32_output.py\", line 150, in get_win32_screen_buffer_info\n    raise NoConsoleScreenBufferError\nprompt_toolkit.terminal.win32_output.NoConsoleScreenBufferError: No Windows console found. Are you running cmd.exe?\n```\n\nIt seems even though it should load, `prompt_toolkit` does not like that Emacs is 1) on Windows and 2) is not in a known shell. I imagine this isn't anything to do with Emacs, as this shouldn't be any different than starting any other type of console from within the editor. Is this fixable? It seems to just be that `prompt_toolkit` doesn't know what it is executing inside. \n\nAnyways, thanks for the IPython 5 release, I really like the new REPL and completion, but being able to use it with Emacs as I have been is important to me as well. Hopefully the fix is as simple as adding some sort of Emacs clause to `get_win32_screen_buffer_info`.\n","author":{"url":"https://github.com/ThatGeoGuy","@type":"Person","name":"ThatGeoGuy"},"datePublished":"2016-07-08T16:47:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":15},"url":"https://github.com/9725/ipython/issues/9725"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:7bbc54c5-5834-64ca-7e14-d84953710b1b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB23E:38C5E:AB3DE5:F72D1F:6A4E4538
html-safe-nonceac8fa2fcdd91f9ecb9c0b6523ac9c79823cd2004332771e2b819ef4de99d3f1a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjNFOjM4QzVFOkFCM0RFNTpGNzJEMUY6NkE0RTQ1MzgiLCJ2aXNpdG9yX2lkIjoiNDk0OTg2MTkwODQ5NDU5NTEzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacde01f304bc79a3e08ff8360a3599b20e0a5664010cadc9e9f95ce4712666bf76
hovercard-subject-tagissue:164571075
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ipython/ipython/9725/issue_layout
twitter:imagehttps://opengraph.githubassets.com/9948e717c71433c013863de4f63388aff7d6fccf51d512ccd295bdc3eb18c576/ipython/ipython/issues/9725
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9948e717c71433c013863de4f63388aff7d6fccf51d512ccd295bdc3eb18c576/ipython/ipython/issues/9725
og:image:altHi all, I have successfully used IPython from within an Emacs buffer in the past, usually by using the jupyter console command. My basic config uses the following: (setq-default python-shell-interp...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameThatGeoGuy
hostnamegithub.com
expected-hostnamegithub.com
None030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0
turbo-cache-controlno-preview
go-importgithub.com/ipython/ipython git https://github.com/ipython/ipython.git
octolytics-dimension-user_id230453
octolytics-dimension-user_loginipython
octolytics-dimension-repository_id658518
octolytics-dimension-repository_nwoipython/ipython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id658518
octolytics-dimension-repository_network_root_nwoipython/ipython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9fabff9b8b127e686a3ec86f91422e818056ca2c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/ipython/ipython/issues/9725#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fipython%2Fipython%2Fissues%2F9725
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fipython%2Fipython%2Fissues%2F9725
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=ipython%2Fipython
Reloadhttps://github.com/ipython/ipython/issues/9725
Reloadhttps://github.com/ipython/ipython/issues/9725
Reloadhttps://github.com/ipython/ipython/issues/9725
Please reload this pagehttps://github.com/ipython/ipython/issues/9725
ipython https://github.com/ipython
ipythonhttps://github.com/ipython/ipython
Please reload this pagehttps://github.com/ipython/ipython/issues/9725
Notifications https://github.com/login?return_to=%2Fipython%2Fipython
Fork 4.5k https://github.com/login?return_to=%2Fipython%2Fipython
Star 16.7k https://github.com/login?return_to=%2Fipython%2Fipython
Code https://github.com/ipython/ipython
Issues 1.3k https://github.com/ipython/ipython/issues
Pull requests 29 https://github.com/ipython/ipython/pulls
Actions https://github.com/ipython/ipython/actions
Projects https://github.com/ipython/ipython/projects
Wiki https://github.com/ipython/ipython/wiki
Security and quality 2 https://github.com/ipython/ipython/security
Insights https://github.com/ipython/ipython/pulse
Code https://github.com/ipython/ipython
Issues https://github.com/ipython/ipython/issues
Pull requests https://github.com/ipython/ipython/pulls
Actions https://github.com/ipython/ipython/actions
Projects https://github.com/ipython/ipython/projects
Wiki https://github.com/ipython/ipython/wiki
Security and quality https://github.com/ipython/ipython/security
Insights https://github.com/ipython/ipython/pulse
IPython 5 breaks Emacs behaviour on Windowshttps://github.com/ipython/ipython/issues/9725#top
needs-infohttps://github.com/ipython/ipython/issues?q=state%3Aopen%20label%3A%22needs-info%22
https://github.com/ThatGeoGuy
ThatGeoGuyhttps://github.com/ThatGeoGuy
on Jul 8, 2016https://github.com/ipython/ipython/issues/9725#issue-164571075
needs-infohttps://github.com/ipython/ipython/issues?q=state%3Aopen%20label%3A%22needs-info%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.