All other Terminal windows continue to use the default environment. Warning: Activating an environment in a particular Terminal window only effects that terminal session and programs spawned from that session. ![]() The command source deactivate deactivates the environment returns the Terminal window to the default root environment. The command ipython -matplotlib runs IPython with a switch that sets-up IPython to do interactive plotting. The which python command isn't necessary, but it was included to verify the path to the current environment is correct. Object? -> Details about 'object', use 'object?' for extra details. ? -> Introduction and overview of IPython's features. IPython 5.1.0 - An enhanced Interactive Python. Type "copyright", "credits" or "license" for more information. Users/computationalphysics/anaconda/envs/astroconda/bin/python For example if you wanted to run ipython in the astroconda environment you would use the following commands. You don't need to do anything to activate the root environment, but to activate the other environments you issue the command source activate environment_name. For general purpose programming the default root environment is probably best. Installing these environments allows you to use whichever version of Python you need. Again, it's a large amount of code so it will take a few minutes to install. You will again be prompted to proceed with the installation. $ conda create -n iraf27 python=2.7 iraf-all pyraf-all stsci Now install the Python 2.7 package with IRAF by using the command:.This is a large installation so it may take a few minutes to finish. Just type y or hit to accept the installation. This command will generate some output and then will display the prompt Proceed (/n)?. Create the Python 3 AstroConda environment.Configure Andaconda to install packages directly from the AstroConda repository.Users/computationalphysics/anaconda/bin/conda If the installation worked, this should display the path to the conda. Open a terminal window and type which conda.This seems to work better than installing system wide. This will install a directory under your login directory called anaconda. NOTE: When you get to the Destination Select step, be sure to pause and select the Install for me only tab. Download Anaconda Graphical Installer (Python 3.6) from Anaconda Download and follow the instructions on that page to install Anaconda.Refer to that page for more detailed instructions. The following installation instructions is a summary drawn from the Installation Instructions on the Space Telescope Science Institue AstroConda page. ![]() ![]() This is because IRAF doesn't "play well" with Python 3. An AstroConda/IRAF environment running Python 2.7. ![]() An AstroConda environment running Python 3.The Anaconda default (root) environment running Python 3.User-agent : conda/4.5.12 requests/2.18.4 CPython/3.6.6 Linux/4.4.0-116-generic ubuntu/16.04 glibc/2.These instructions should install the Anaconda Python distribution and three separate Anaconda environments: Package cache : /home/XXX/miniconda3/pkgsĮnvs directories : /home/XXX/miniconda3/envs Populated config files : /home/XXX/.condarcīase environment : /home/XXX/miniconda3 (writable)Ĭhannel URLs : file://tmp/conCAPSID/linux-64 I use conda on the same server and can add a private channel with conda config -add channels file//. I’m asking if it is possible to add private conda channel to use in Galaxy.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |