Due to the need to write markdown documents about Python code, the plugin is hereby modified for personalized use.
Function introduction:
Send the text of the active window to ipython to run, and you can quickly write python documents with markdown.
Personalized modification:
Optional setting: whether to set to directly return to the editing window focused on the document after running the code in ipython.
Optional setting: whether to automatically load into the folder where the edited file is located during the initialization of ipython during runtime to run (it is convenient to read files in different folders).
Optional setting: Whether to directly send the selected content to the terminal of ipython by using the command %load -r of ipython, otherwise only the selected text content will be sent.
Optional setting: You can choose whether to save automatically before sending. This option is used with the ipython syntax load.
Optional setting: Whether to make the cursor automatically switch to the next line after sending, which is convenient and quicker to interact with File-->Terminal.
Instructions
Currently it includes two commands:
ipython.sendFileContentsToIPython: will send the complete file content to the opened ipython instance (if not opened, send a new instance)
ipython.sendSelectedToIPython: Send the selected line or the line where the cursor is located to the opened ipython instance (if it is not open, then send a new line)
Limit:
Only one ipython instance can work, not multiple instances at the same time. Therefore, special attention should be paid to the control of environment variables when switching files.
Changelogs
v0.6.2 (2021-02-08)
Fix BUG
[x] Fix the bug that vscode cannot be used normally after updating vscode January 2021 (version 1.53).
Function optimization
[x] When selected, do not automatically jump to the next line.
v0.6.1 (2020-08-30)
BUG fix
[x] Update the description of the function options and the README document.
[x] Fix the bug that after the ipython command # %load, there will be one more line wrap.
v0.6.0 (2020-08-30)
New features
[x] Add optional options, you can choose to automatically save before sending to match the use of ipython syntax load.
[x] Add optional options, the cursor will automatically switch to the next line after sending, which is convenient and faster for interaction.
v0.5.7 - v0.5.9
Interface and description optimization
[x] How to use animation
[x] Update text language description
[x] Update and beautify icons
v0.5.6 (2020-03-30)
BUG fix
[x] Fixed the problem that the terminal cannot be executed automatically when \n is entered at the end.
v0.5.5 (2020-03-27)
BUG fix
[x] Fix the problem that ipython does not run due to loading timeout after inputting ipython.
v0.5.4 (2020-03-27)
New features
[x] Set optional settings: whether to use the command %load -r to read lines from the file using ipython to directly send the selected content directly to the ipython terminal, otherwise directly send the selected content.
v0.5.3 (2020-03-27)
New features
[x] Set optional settings: After running, you can set and directly return to the document editing window
[x] Set optional settings: you can send the selected content directly to the ipython terminal