You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think that what I would want is another option such as fsi.sendchunk in addition to the ones we already have. python-vscode did something like this before they implemented full jupyter notebook support. I found that I much prefer that to the full jupyter support. This is because it allows for chunk like thinking in my program but without all the jupyter baggage that I usually just don't need.
Below is a very simple example in python. In this example the first section is importing packages, the second is declaring a variable, the third is producing output. I prefer to put everything into one file when possible. I also find it helpful to segment different programming sections like this, but having it all in one script is also very useful when collaborating with others who only use jupyter notebooks.
Each of the #%% segment the code into sections that when the keyboard shortcut is selected will run all of the code located within that code chunk.
I think this is the code that they use to find and define each chunk.
This discussion was converted from issue #1326 on December 22, 2020 21:14.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I think that what I would want is another option such as
fsi.sendchunk
in addition to the ones we already have. python-vscode did something like this before they implemented full jupyter notebook support. I found that I much prefer that to the full jupyter support. This is because it allows for chunk like thinking in my program but without all the jupyter baggage that I usually just don't need.Below is a very simple example in python. In this example the first section is importing packages, the second is declaring a variable, the third is producing output. I prefer to put everything into one file when possible. I also find it helpful to segment different programming sections like this, but having it all in one script is also very useful when collaborating with others who only use jupyter notebooks.
Each of the
#%%
segment the code into sections that when the keyboard shortcut is selected will run all of the code located within that code chunk.I think this is the code that they use to find and define each chunk.
Thanks for your time!
Beta Was this translation helpful? Give feedback.
All reactions