Hi,
Cells in Spyder are defined by comments that start with this format:
#%%
so there's nothing that Spdyer-specific about them, and so you can run
Python files on a terminal without any problems-
You can think of them as headers for different sections for your file
(e.g. load data, process data and run analysis).
Cheers,
Carlos
El 24/02/16 a las 14:12, Anh Le escribió:
I'm aware of the code cell, but I was hopeful that there is a way to
auto-advance without this since I want to maintain a pure Python
script (that can be run with python file.py in the terminal), instead
of something specific to an IDE.
On Thursday, February 4, 2016 at 8:08:09 AM UTC-5, Yuxiang Wang wrote:
Have you tried to use shift + enter to progress through code
cells? It looks like:
# %%
import matplotlib.pyplot as plt
# %%
fig, axs = plt.subplots()
fig.savefig('mpl_tiff.tif', dpi=300)
And you can use shift + enter to run the current cell, and in the
mean time the cursor will be at the next cell.
I don't know how much this helps, but sounds like an interesting
feature to you if you haven't tried it yet!
Shawn
On Wednesday, February 3, 2016 at 11:42:12 AM UTC-5, Anh Le wrote:
Coming from RStudio, I'm familiar with the behavior of the
cursor automatically moving to the next line. I think this
makes sense for data analysis code. Does Spyder have something
similar? If not, is there a reason for this implementation?
--
You received this message because you are subscribed to the Google
Groups "spyder" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
Visit this group at https://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.