Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SciProg2024
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cprutean
SciProg2024
Commits
bde59643
Commit
bde59643
authored
6 months ago
by
Philip J Clark
Browse files
Options
Downloads
Patches
Plain Diff
minor edit about Spyder
parent
f1371b04
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CourseNotes/GetPython.ipynb
+8
-4
8 additions, 4 deletions
CourseNotes/GetPython.ipynb
with
8 additions
and
4 deletions
CourseNotes/GetPython.ipynb
+
8
−
4
View file @
bde59643
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
"cells": [
"cells": [
{
{
"cell_type": "markdown",
"cell_type": "markdown",
"id": "e766b8cd",
"metadata": {},
"metadata": {},
"source": [
"source": [
"This pages gives recipes on how to get working on your own machine. It\n",
"This pages gives recipes on how to get working on your own machine. It\n",
...
@@ -32,8 +33,7 @@
...
@@ -32,8 +33,7 @@
"it will work. *Spyder* also reads and write files is standard text so\n",
"it will work. *Spyder* also reads and write files is standard text so\n",
"you can easily transfer to/from CPLab with USB key.\n",
"you can easily transfer to/from CPLab with USB key.\n",
"\n",
"\n",
"The *Spyder* environment has also been installed on the CPLab, but at\n",
"The *Spyder* environment has also been installed on the CPLab.\n",
"the moment it is still being developed, so it not recommended yet.\n",
"\n",
"\n",
"The Mac is fundamentally a Unix machine, so you can tailor it to looks\n",
"The Mac is fundamentally a Unix machine, so you can tailor it to looks\n",
"very much like the CPLab Linux machines. Do do this you have t do the\n",
"very much like the CPLab Linux machines. Do do this you have t do the\n",
...
@@ -103,7 +103,11 @@
...
@@ -103,7 +103,11 @@
]
]
}
}
],
],
"metadata": {
"language_info": {
"name": "python"
}
},
"nbformat": 4,
"nbformat": 4,
"nbformat_minor": 5,
"nbformat_minor": 5
"metadata": {}
}
}
%% 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 $
\r
ightarrow$ Utilities
-
In the Finder select Applications $
\r
ightarrow$ Utilities
$
\r
ightarrow$ X11.
$
\r
ightarrow$ 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 $
\r
ightarrow$ Terminal in the topbar.
Toobar, then Aplication $
\r
ightarrow$ 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 !
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment