{"action":"created","issue":{"url":"https://api.github.com/repos/ipython/ipykernel/issues/375","repository_url":"https://api.github.com/repos/ipython/ipykernel","labels_url":"https://api.github.com/repos/ipython/ipykernel/issues/375/labels{/name}","comments_url":"https://api.github.com/repos/ipython/ipykernel/issues/375/comments","events_url":"https://api.github.com/repos/ipython/ipykernel/issues/375/events","html_url":"https://github.com/ipython/ipykernel/issues/375","id":386511443,"node_id":"MDU6SXNzdWUzODY1MTE0NDM=","number":375,"title":"IPykernel triggers repeated DeprecationWarnings due to input_splitter","user":{"login":"CAM-Gerlach","id":17051931,"node_id":"MDQ6VXNlcjE3MDUxOTMx","avatar_url":"https://avatars0.githubusercontent.com/u/17051931?v=4","gravatar_id":"","url":"https://api.github.com/users/CAM-Gerlach","html_url":"https://github.com/CAM-Gerlach","followers_url":"https://api.github.com/users/CAM-Gerlach/followers","following_url":"https://api.github.com/users/CAM-Gerlach/following{/other_user}","gists_url":"https://api.github.com/users/CAM-Gerlach/gists{/gist_id}","starred_url":"https://api.github.com/users/CAM-Gerlach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CAM-Gerlach/subscriptions","organizations_url":"https://api.github.com/users/CAM-Gerlach/orgs","repos_url":"https://api.github.com/users/CAM-Gerlach/repos","events_url":"https://api.github.com/users/CAM-Gerlach/events{/privacy}","received_events_url":"https://api.github.com/users/CAM-Gerlach/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-12-02T00:09:55Z","updated_at":"2018-12-02T08:12:57Z","closed_at":null,"author_association":"NONE","body":"@minrk When certain commands are run (e.g. ``print(<object>)``) in Spyder's Console, ``ipykernel`` (including the latest version, 5.1.0) raises one or something many ``DeprecationWarning``s like the following every time enter is pressed, and often doesn't run the command until forced with ``Shift-Enter``:\r\n\r\n```python-traceback\r\nC:\\Anaconda3\\envs\\pyart\\lib\\site-packages\\ipykernel\\ipkernel.py:448: DeprecationWarning: `input_splitter` is deprecated since IPython 7.0, prefer `input_transformer_manager`.\r\n  status, indent_spaces = self.shell.input_splitter.check_complete(code)\r\n```\r\n\r\nThis is not only annoying, but actually seriously affects the functionality by not allowing the user to run the command normally. It was first reported in spyder-ide/spyder#8103 and \"fixed\" in spyder-ude/spyder-kernels#59 , but it doesn't seem like it was actually reported here where it belongs for some reason, and instead that \"solution\" was just to suppress ``DeprecationWarnings`` from ``ipykernel`` entirely.\r\n\r\nTherefore, I wanted to give you a heads up before it breaks! [Here](https://github.com/ipython/ipykernel/blob/35b1d1a823dd22a0fe4eb99e89463c2527a11271/ipykernel/ipkernel.py#L448) 's the relevant line that's triggering it, for your convenience; presumably fixing it would involve updating it to use ``input_transformer_manager`` instead but I'm no expert. Thanks!"},"comment":{"url":"https://api.github.com/repos/ipython/ipykernel/issues/comments/443489745","html_url":"https://github.com/ipython/ipykernel/issues/375#issuecomment-443489745","issue_url":"https://api.github.com/repos/ipython/ipykernel/issues/375","id":443489745,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MzQ4OTc0NQ==","user":{"login":"CAM-Gerlach","id":17051931,"node_id":"MDQ6VXNlcjE3MDUxOTMx","avatar_url":"https://avatars0.githubusercontent.com/u/17051931?v=4","gravatar_id":"","url":"https://api.github.com/users/CAM-Gerlach","html_url":"https://github.com/CAM-Gerlach","followers_url":"https://api.github.com/users/CAM-Gerlach/followers","following_url":"https://api.github.com/users/CAM-Gerlach/following{/other_user}","gists_url":"https://api.github.com/users/CAM-Gerlach/gists{/gist_id}","starred_url":"https://api.github.com/users/CAM-Gerlach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CAM-Gerlach/subscriptions","organizations_url":"https://api.github.com/users/CAM-Gerlach/orgs","repos_url":"https://api.github.com/users/CAM-Gerlach/repos","events_url":"https://api.github.com/users/CAM-Gerlach/events{/privacy}","received_events_url":"https://api.github.com/users/CAM-Gerlach/received_events","type":"User","site_admin":false},"created_at":"2018-12-02T08:12:57Z","updated_at":"2018-12-02T08:12:57Z","author_association":"NONE","body":"Okay, sure—I'll add it to the list. So it really is as easy as just replacing the above with ``self.shell.input_transformer_manager.check_complete(code)``? It indeed looks like a drop-in according to [the docs](https://ipython.readthedocs.io/en/stable/api/generated/IPython.core.inputtransformer2.html#module-IPython.core.inputtransformer2)..."}}
{"actor":{"display_login":"CAM-Gerlach"}}