On Tue, Dec 19, 2017 at 9:41 AM, Dima Pasechnik <dimp...@gmail.com> wrote: > > > On Tuesday, December 19, 2017 at 6:30:42 AM UTC, PHPirate wrote: >> >> Thanks for the replies, so I would be very interested to run vim or emacs >> on Windows (although I have never heard of any windows user doing so) but >> since you both run a different OS you may not know how to set this up on >> Windows? > > > Internet is awash with instructions on installing emacs/xemacs and vim/gvim > on Windows. > They are also available as a part of Cygwin and msys2. > > > >> >> I'll try in any case later on, I think I should open a separate topic for >> that I guess? >> >> For now, I found some tips at https://wiki.sagemath.org/Tips about usage >> with vim, and a couple of vim plugins like >> https://github.com/petRUShka/vim-sage but no complete installation guide. Is >> there one? If not, if I manage to get it work I will write one myself then. >> I really hope I will manage to run Sage scripts from within vim, as the >> wiki hints is possible! >> >> In any case, conclusion for this topic: don't use PyCharm, try vim (or if >> you want, emacs or atom or whatever) instead. > > > IMHO Erik wrote that it appears to be possible to use PyCharm with Cygwin > Python. > Thus it should be possible with Sage's Python too...
My instructions were actually specifically for Sage's Python (though they would apply to a plain Cygwin Python as well). >> Let me quote Martin Vahi... >> "As a side note I say that I've noticed that software developers, me >> myself included, are usually not as good at math as they _should_ and pure >> mathematicians tend to be at software development not as good as they could. >> That seems to explain a lot of things in this world. :-D" >> >> On Monday, December 18, 2017 at 10:25:14 PM UTC+1, Dima Pasechnik wrote: >>> >>> >>> >>> On Monday, December 18, 2017 at 8:20:18 PM UTC, David Roe wrote: >>>> >>>> >>>> >>>> On Mon, Dec 18, 2017 at 8:55 AM, PHPirate <holland...@gmail.com> wrote: >>>>> >>>>> Thanks, that sounds a bit too difficult for me though so I'll just >>>>> stick to writing in PyCharm and try to execute my Sage files via the Sage >>>>> shell. >>>>> >>>>> But out of curiosity, am I the only one wanting to write scripts in >>>>> Sage? Or are there other people using editors in the same way? >>>> >>>> >>>> I think many people write scripts for Sage, though much of that >>>> development isn't happening on Windows. Personally, I use emacs on OS X. >>> >>> >>> I use vim on Linux (as well as, if needed, on OSX and on FreeBSD). Surely >>> it does syntax highlighting for Python/Cython >>> and with a small effort for Sage (as it's basically Python, >>> language-wise) too... >>> >>> I know people using atom for the same purpose (and yes, emacs for sure). >>> >>> Vim and emacs run, natively, on Windows. IMHO Notepad is the last >>> resort... >>> >>>> >>>> David >>>> >>>>> >>>>> >>>>> On Monday, December 18, 2017 at 5:42:50 PM UTC+1, Erik Bray wrote: >>>>>> >>>>>> On Mon, Dec 18, 2017 at 5:37 PM, PHPirate <holland...@gmail.com> >>>>>> wrote: >>>>>> > Hm, it is at least worth a try (just saw your message on GH) Okay I >>>>>> > can >>>>>> > understand if Sage has no syntax highlighting in any IDE on Windows, >>>>>> > but as >>>>>> > the situation is now for me, is that there is no IDE in which you >>>>>> > can type >>>>>> > Sage and then hit 'run' and then get Sage output. Now I think I >>>>>> > could write >>>>>> > Sage in Notepad and then execute a Sage file via the Sage shell but >>>>>> > I'm >>>>>> > looking to shortcut that a bit (my expectations are quite lower now >>>>>> > I know >>>>>> > that Sage doesn't have a standard editor which everyone uses). >>>>>> > >>>>>> > But is it a bad idea to write Sage scripts? Did I misunderstand >>>>>> > something, >>>>>> > and should I use the console only? >>>>>> >>>>>> It's not at all a bad idea; it's just that if you want correct syntax >>>>>> highlighting for it you'll have to use an editor for which there is >>>>>> syntax highlighting support for Sage, or add it yourself to your >>>>>> editor of choice. Certainly there's no reason to use notepad >>>>>> regardless. It's just that different editors have different means of >>>>>> providing syntax highlighting for new languages (where Sage's syntax >>>>>> is just a small superset over pure Python syntax). >>>>>> >>>>>> More importantly, the default Python interpreter also isn't going to >>>>>> know how to execute a Sage script, though it seems that in PyCharm >>>>>> it's probably possible to configure the necessary options to pre-load >>>>>> the Sage syntax parser and then pass it a .sage script, but I haven't >>>>>> tried it yet. >>>>>> >>>>>> > On Monday, December 18, 2017 at 2:06:09 PM UTC+1, Erik Bray wrote: >>>>>> >> >>>>>> >> That sounds a bit bogus to me. I've never used PyCharm before and >>>>>> >> don't >>>>>> >> know how it works, but I suspect it could be made to work with >>>>>> >> Cygwin's >>>>>> >> Python. It's pretty low-priority for me though. I don't see how >>>>>> >> using >>>>>> >> PyCharm to edit sage source code would be useful--it won't even do >>>>>> >> syntax >>>>>> >> highlighting properly, unless I'm missing something. >>>>>> >> >>>>>> >> On Saturday, December 16, 2017 at 2:01:08 PM UTC+1, Dima Pasechnik >>>>>> >> wrote: >>>>>> >>> >>>>>> >>> I've already expalined here >>>>>> >>> https://github.com/sagemath/sage-windows/issues/12 that PyCharm >>>>>> >>> doesn't >>>>>> >>> support Cygwin Python, >>>>>> >>> and thus it's not going to be trivial to fix. The reason that we >>>>>> >>> must use >>>>>> >>> Cygwin Python is that a number of essential Sage components (i.e. >>>>>> >>> Python >>>>>> >>> extensions you need) e.g. GAP, won't work natively on Windows, as >>>>>> >>> they use >>>>>> >>> fork() and other Unix/Posix specific system functions. >>>>>> >>> >>>>>> >>> On Saturday, December 16, 2017 at 12:19:56 PM UTC, PHPirate wrote: >>>>>> >>>> >>>>>> >>>> Thanks, it sounds reasonable. But do you mean the Jupyter >>>>>> >>>> notebook >>>>>> >>>> included with Sage, which you can start with >>>>>> >>>> sage --notebook ipython >>>>>> >>>> from the Sage shell? I do not like notebooks such as this one and >>>>>> >>>> Mathematica because they do not go well with a VCS. Is it then >>>>>> >>>> possible to >>>>>> >>>> use this Jupyter to edit and run Sage files saved in a better >>>>>> >>>> way, like >>>>>> >>>> python files? >>>>>> > >>>>>> > -- >>>>>> > You received this message because you are subscribed to the Google >>>>>> > Groups >>>>>> > "sage-devel" group. >>>>>> > To unsubscribe from this group and stop receiving emails from it, >>>>>> > send an >>>>>> > email to sage-devel+...@googlegroups.com. >>>>>> > To post to this group, send email to sage-...@googlegroups.com. >>>>>> > Visit this group at https://groups.google.com/group/sage-devel. >>>>>> > For more options, visit https://groups.google.com/d/optout. >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "sage-devel" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to sage-devel+...@googlegroups.com. >>>>> To post to this group, send email to sage-...@googlegroups.com. >>>>> Visit this group at https://groups.google.com/group/sage-devel. >>>>> For more options, visit https://groups.google.com/d/optout. >>>> >>>> > -- > You received this message because you are subscribed to the Google Groups > "sage-devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-devel+unsubscr...@googlegroups.com. > To post to this group, send email to sage-devel@googlegroups.com. > Visit this group at https://groups.google.com/group/sage-devel. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.