Skip to content
Snippets Groups Projects
Commit bde59643 authored by Philip J Clark's avatar Philip J Clark
Browse files

minor edit about Spyder

parent f1371b04
No related branches found
No related tags found
No related merge requests found
%% Cell type:markdown id: tags: %% Cell type:markdown id:e766b8cd tags:
This pages gives recipes on how to get working on your own machine. It This pages gives recipes on how to get working on your own machine. It
is a based on *best effort* local experience and comes with no support. is a based on *best effort* local experience and comes with no support.
While we encourage you to get working on your own machine and *play*, While we encourage you to get working on your own machine and *play*,
remember that we will **only** marks checkpoints on the CPLab machines remember that we will **only** marks checkpoints on the CPLab machines
and not your own laptops. and not your own laptops.
You must transfer any code to the CPLab system (by USB Key or e-mail), You must transfer any code to the CPLab system (by USB Key or e-mail),
and make sure it works there before getting it marked. and make sure it works there before getting it marked.
The best supported and comprehensive environments is currently Anaconda The best supported and comprehensive environments is currently Anaconda
This is free to download and install for *Windows* *Mac* or *Linux*. This is free to download and install for *Windows* *Mac* or *Linux*.
This inclues a full 3.7 kit, the IDE *Spyder* and all the additional This inclues a full 3.7 kit, the IDE *Spyder* and all the additional
libraries to could even want. It also includes *Juypter* and libraries to could even want. It also includes *Juypter* and
*Juypter-Lab* and *VS Code* which you will not need in this course. *Juypter-Lab* and *VS Code* which you will not need in this course.
The download and install is fully doumented in the above and should The download and install is fully doumented in the above and should
basically *just work*. The download is very large and expands to a basically *just work*. The download is very large and expands to a
couple of couple of GByte, but this is well with the capability of most couple of couple of GByte, but this is well with the capability of most
modern laptops / desktops. modern laptops / desktops.
For *Windows* or *Mac* user we strongly recommend the *Spyder* For *Windows* or *Mac* user we strongly recommend the *Spyder*
development environment; this given an editor to edit code and a console development environment; this given an editor to edit code and a console
to run code, this is actually a *IPython* console, but if you just *run* to run code, this is actually a *IPython* console, but if you just *run*
it will work. *Spyder* also reads and write files is standard text so it will work. *Spyder* also reads and write files is standard text so
you can easily transfer to/from CPLab with USB key. you can easily transfer to/from CPLab with USB key.
The *Spyder* environment has also been installed on the CPLab, but at The *Spyder* environment has also been installed on the CPLab.
the moment it is still being developed, so it not recommended yet.
The Mac is fundamentally a Unix machine, so you can tailor it to looks The Mac is fundamentally a Unix machine, so you can tailor it to looks
very much like the CPLab Linux machines. Do do this you have t do the very much like the CPLab Linux machines. Do do this you have t do the
following: following:
## Install the X11 environment ## Install the X11 environment
This is not installed by default, but is a free download from the Mac This is not installed by default, but is a free download from the Mac
Store and will autoinstall. Store and will autoinstall.
- In the Finder select Applications $\rightarrow$ Utilities - In the Finder select Applications $\rightarrow$ Utilities
$\rightarrow$ X11. $\rightarrow$ X11.
If this is installed it will start, if not it will take you to the If this is installed it will start, if not it will take you to the
Apple Store and will take you through the install, this is a large Apple Store and will take you through the install, this is a large
install as it includes other programming development tools. install as it includes other programming development tools.
- This is needed to display the Matlibplot graphics and it also gives - This is needed to display the Matlibplot graphics and it also gives
you an *xterminal* which is just about identical to the terminal on you an *xterminal* which is just about identical to the terminal on
the CPLab machines. You start this click on the X11 logo in the the CPLab machines. You start this click on the X11 logo in the
Toobar, then Aplication $\rightarrow$ Terminal in the topbar. Toobar, then Aplication $\rightarrow$ Terminal in the topbar.
X11 is needed for all the orther free Unix utilities you may also wish X11 is needed for all the orther free Unix utilities you may also wish
to install, for example XMGrace, xfig, gnuplot. You will find there on to install, for example XMGrace, xfig, gnuplot. You will find there on
your favourite download site. your favourite download site.
## Installing an Editor ## Installing an Editor
The default version of emacs in the Mac is *very limited* and only works The default version of emacs in the Mac is *very limited* and only works
within the terminal window, so you will want to install something within the terminal window, so you will want to install something
*better*. Here you have choice… *better*. Here you have choice…
Emacs for X11: This gives you the same emacs as on the CPLab. Emacs for X11: This gives you the same emacs as on the CPLab.
- Download from for example [a](http://emacsformacosx.com/)s a dmg and - Download from for example [a](http://emacsformacosx.com/)s a dmg and
do the install. do the install.
Emacs for Aqua: This gives you emacs but running via the Mac OSX own Emacs for Aqua: This gives you emacs but running via the Mac OSX own
window system (Aqua), rather than X11. window system (Aqua), rather than X11.
- Download from [.](http://aquamacs.org/) - Download from [.](http://aquamacs.org/)
To run either of these select them from the Applications or Launchpad To run either of these select them from the Applications or Launchpad
screen and then Open File. If you want to run from the terminal as you screen and then Open File. If you want to run from the terminal as you
do in the CPlab, you will have to learn about `.bachrc` files and do in the CPlab, you will have to learn about `.bachrc` files and
`alias`, ask if you want to go there. `alias`, ask if you want to go there.
Other Editors There are *many* other editors, play, talk to friends etc; Other Editors There are *many* other editors, play, talk to friends etc;
but remember some require *real money* or have limited *free trial* but remember some require *real money* or have limited *free trial*
periods after which you have to pay! periods after which you have to pay!
A useful alternative is Xcode which is the full Apple development A useful alternative is Xcode which is the full Apple development
environment which is free to download from the Mac Store. It is *huge* environment which is free to download from the Mac Store. It is *huge*
and really designed to develop apps for *iPad*, *iPhone*, *iWatch* etc, and really designed to develop apps for *iPad*, *iPhone*, *iWatch* etc,
but it will also work as a simple editor. xCode is however very but it will also work as a simple editor. xCode is however very
resource intensive and it only really works on a new fast Mac with lots resource intensive and it only really works on a new fast Mac with lots
of memory, it also takes up about 3 Gbyte of disc! of memory, it also takes up about 3 Gbyte of disc!
If you are already running Linux on your own machine then you already If you are already running Linux on your own machine then you already
have everything to need, or can simply add it with what ever package have everything to need, or can simply add it with what ever package
manager come with your distribution. Here you also have an almost manager come with your distribution. Here you also have an almost
infinite choice of editors, but again most people will want to infinite choice of editors, but again most people will want to
`emacs-X11` on their system. `emacs-X11` on their system.
Note that some Linux distributions that follow the newest updates are Note that some Linux distributions that follow the newest updates are
now using as the default, for example Fedora, but if you are that close now using as the default, for example Fedora, but if you are that close
to the *bleeding*-edge you will already know this ! to the *bleeding*-edge you will already know this !
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment