――This article is just an individual opinion ――I think there is a more suitable shape depending on the environment --There may be a smarter way due to lack of study
――We will build a virtual environment according to the following flow
No. | Contents |
---|---|
1 | Overall picture |
2 | Build a virtual environment with VirtualBox + vagrant |
3 | pyenv+Anaconda[Python、R]+ jupyter + Rstudio installation |
4 | postgreSQL+Install Pgadmin 4 |
――When thinking about the analysis environment, I thought about the analysis environment by ** what kind of work I usually do ** ――I think there are various ways of working, but this time I will consider the following analysis environment for people.
――We considered the following analysis environment
--The analysis execution environment is likely to be SSH to a Linux-based server. --Reduce rework by building a Linux environment locally
--Laptop environment is Windows or Mac --There is a Linux environment if you SSH to the analysis server ――Although there is an analysis server, I want to develop it locally rather than on the server first. --Reason (1): I don't want to bother people who are using the analysis server by sending strange code. --Reason (2): It is troublesome to transfer the result ――Reason ③: It is troublesome to SSH each time you want to analyze quickly --An error occurs when executing locally analyzed code on the analysis server --Cause (1): The package is not installed --Cause (2): Package version is different --Cause ③: Encoding and line feed code are different --Try & error on analysis server
--Laptop environment is Windows --I want to run it on the terminal, but MS-DOS is difficult to use and I put Cygwin --Stumbling on library installation ――You can do your best and move it for the time being, but the environment will be messed up. --When I try to put Anaconda in Cygwin, it doesn't work. --Give up and analyze in Windows environment and do not run on the terminal --Try & error on analysis server
――I personally like the analysis environment like Rstudio ――The reasons I like are as follows
software | result | 1 | 2 | 3 | 4 | 5 | 6 | Remarks |
---|---|---|---|---|---|---|---|---|
Rodeo | × | 〇 | 〇 | △ | × | △ | 〇 | Officially it says that you can specify markdown and server, but version 2.0.I couldn't do it at 13. |
Spyder | × | 〇 | 〇 | × | × | × | 〇 | There is a possibility of insufficient investigation. |
PyCharm | × | 〇 | × | × | 〇 | 〇 | × | There is a possibility of insufficient investigation. |
Jupyter | 〇 | × | 〇 | 〇 | 〇 | 〇 | 〇 | R can also be used in a similar environment. You can make a slide show using RISE. |
Jupyter lab | × | × | 〇 | 〇 | 〇 | 〇 | 〇 | It seems that you can basically do what you can do with jupyter. The terminal and script are split screens, but the results are not reflected in the terminal. I want to look forward to it in the future. |
--Use an open source license --The reasons for using it are as follows ――Considering cooperation with academics, I want to avoid paid environments as much as possible --I don't want to be dependent on paid software
software | Reason |
---|---|
Windows | Because there are not a few MS office users around (In this case, you can build a similar environment on Mac) |
Oracle VirtualBox | I wanted to build a virtual environment on an existing PC. I wanted to create a virtual environment that can be used on both Windows and Mac. ※Detail isLet's summarize the virtual environmentDescribed in |
vagrant | To distribute the same environment. I also tried Docker, which is popular recently, but it failed in various ways. |
Ubuntu | Match the OS of the analysis server * I feel that there are many recent analysis-related articles on Ubuntu. |
Anaconda | Because the necessary libraries are organized and easy |
Teraterm | I've used it until now |
WinSCP | I'm not sure what else is there |
Recommended Posts