Advantages of having applications from Anaconda or independent (and the latest) - visual-studio-code

Can someone can explain and advise whether and why one should install and use applications such as Orange or RStudio or VS Code from Anaconda vs. download and install directly/independently (as stand-alone apps)? At a minimum, what I see (as I am using RStudio and VS Code) current stable versions on the internet are (much) newer.
I am using:
conda version : 4.8.1
conda-build version : 3.18.9
python version : 3.7.4.final.0
platform : osx-64

Anaconda pre-installed a lot of packages for you, so you don't have to install them manually. Anaconda create an environment in VSCode, so when you need to use these packages, you have to start VSCode from Anaconda, or switch to conda environment.
On the other hand, when using VSCode independently, you have to install packages yourself.

Related

Install specific version of PyTorch to conda environment [duplicate]

This question already has answers here:
How to install older version of pytorch
(2 answers)
Closed 1 year ago.
Using Anaconda Navigator I created a new environment for running someone's VAE code off GitHub that uses Python 3.6 and PyTorch 0.4.0. Unfortunately, Anaconda Navigator doesn't give me the option to install an older version of PyTorch on this environment, just the PyTorch version I have currently installed. How do I install PyTorch 0.4.0 only to this new Conda environment I created? If it's possible via Anaconda Navigator, great! But I assume it's going to be done via a Conda command. I definitely don't want to mess up my other environments.
Thanks!
Just navigate to the conda environment you want to install it, then use
conda install pytorch=0.4.1 -c pytorch
More details here on how you can install previous PyTorch versions: https://pytorch.org/get-started/previous-versions/
According to this blog, conda navigator does not work, but you can follow it to install pytorch in a conda environment:
https://medium.com/#bryant.kou/how-to-install-pytorch-on-windows-step-by-step-cc4d004adb2a
if you also want to specify the cuda version do this:
conda install pytorch==1.7.1 torchvision cudatoolkit=10.2 -c pytorch

How to install and run Theia, browser based IDE?

I want to develop remotely and read about Theia. I could install the program with pip
pip install theia
But then there is no description available on how to start the program. Is it plug-in for Eclipse, or do I have to run it in docker or what?
Theia is not an extension of the classic Eclipse project. This is not really an installable app.
If you want to run Theia locally, you can follow the tutorial of the official documentation : Official help to setup environement.
Be sure to have Node.js 10 installed. It is not currently compatible with Node.js 12. If you want to have more than one version of Node installed on you machine, I advise you nvm (nvm github) or nvm-windows (nvm windows github).
If it can be useful, I personnally have a small bat script to launch Theia at the manner of a desktop app
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --app=http://localhost:3000
yarn start

Does the MSYS2 version of emacs support X server?

MSYS2 has three versions of emacs. Only the msys/emacs version supports term mode and other shell related features. The mingw32 and mingw64 versions only support the inconvenient shell and eshell mode.
However, the msys version does not seem to support GUI. In Cygwin it was possible to access GUI by installing an X server. Does the MSYS2 version supports X server? How to configure this version?
If you're willing to use cygwin, it now offers a cygwin version of emacs that supports a native Windows gui (emacs-w32); no need for an X-server!

How to run VSCode on Centos6

My company is using an old CentOS6 and they wont update it before months (years?). This is totally out of my control and it obviously makes using up to date software a nightmare.
I would like to use Visual Studio Code as a C++ IDE but its intellisense plugin is running with glibc >=2.14 and Centos6 comes with glibc 2.12.
It also needed some more dependencies I managed to recompile and load with LD_LIBRARY_PATH. I tried compiling a new glibc and load it as well but it segfault, as expected.
I used the compiled version of VSCode from the official website.
I tried compiling it myself but it requires to download many files and my virtual machine does not have Internet, I can only transfer files through ftp. I created a local yarn repository, compiled all appropriate version of Yarn, NodeJS but a compiled binary is trying to download electron and I have no idea where to put the file to trick him into thinking it's downloaded already (assuming I could).
There are standalone solutions to run software on old distribution, like AppImage but VSCode is not part of their apps.
Would you have any idea on how to run VSCode on Centos6? Did you ever try to compile VSCode without and Internet Connection?
Currently the only viable solution I see would be to create an AppImage at home.
To run VS Code Server on CentOS 6, I followed the "glibc and libstdc ++ on RHEL / CentOS 6 update" article from here.
Perhaps this option will help you.

Python 3.x on Canopy Express

Are there any issues with installing Python 3.3 after installing Canopy Express (which has Python 2.7)? I recently installed Canopy to take advantage of the packages it bundles. I see that it has uses version 2.7 of python, but I would very much like to use the latest and greatest version of Python as I am new to python and just learning it. However I would like to make sure that installing Python 3.3 doesn't break any of the features of Canopy.
You can install Python 3 in parallel to Canopy, but you will not be able to run Canopy on Python 3.