How to install dependencies for IPython Notebook? - ipython

I downloaded some notebook but when I try to ru it it prints messages about some libraries not being available, like pandas, pylab etc.
How to install those libraries? And what version of those libraries needs to be installed? I installed it manually, but it still not works, because it seems like it requires different versions.
Is there any automated way to install the proper dependencies for the notebook, with the right versions?

Related

Configuring Eclipse with Sparkling Water

My objective is to use Eclipse for coding Sparkling Water on Mac.
I have been able to install Java, Scala, Spark 2.2 with Brew install, Sparkling water as binaries and have been actively coding on Jupyter notebook. I have also been able to successfully install Eclipse, PyDev and configure it with Anaconda's Python interpreter.
What I have not been able to do is to configure Eclipse for either Spark or Sparkling water. The issue is two fold:
Brew install does not have .zip or .egg file that can be used as Python interpreter.
Brew does not create env variables in /Users//bash_profile folder. I suppose this can be solved by manually adding the env variable.
I am following directions from https://enahwe.wordpress.com/2015/11/25/how-to-configure-eclipse-for-developing-with-python-and-spark-on-hadoop/
Can someone please provide directions for configuring eclipse with brew installs?

anaconda opencv in eclipse pydev unresolved import

I cannot find the answer to this, and I have looked quite a bit. I used the python distribution, anaconda, to install opencv for use in my python applications using the instructions on this web site,
https://rivercitylabs.org/up-and-running-with-opencv3-and-python-3-anaconda-edition/
It is very easy, it works great, and opencv is available in my python applications. I have only one problem, and it is in the nature of an annoyance: eclipse and pydev cannot see that cv2 is available, and they give the little red underline on the import cv2 statement, and claim this is an "unresolved import". I repeat, cv2 works when I run my python applications, no problem. It is just not being seen by eclipse and pydev.
I looked in the anaconda env directory where opencv is installed, and found in the lib/python3.6/site-packages directory this file:
cv2.cpython-36m-x86_64-linux-gnu.so
This folder, /anaconda-env-folder/lib/python3.6/site-packages, is of course listed on the python path for the anaconda virtual env in eclipse. Nothing would work without it. But everything else in this folder is a py file. This one is an so. Is that the problem? Eclipse and pydev cannot see this type of file, and therefore cannot give it credit for being importable? Even though python can import it?
I tried adding the directory as an external library, and I tried starting eclipse with this directory in the LD_LIBRARY_PATH, as per:
Eclipse with $LD_LIBRARY_PATH
It is still an "unresolved import".
Is there a way to fix this?
Thanks for any help!
Take a look at my answer, especially at Eclipse tutorial image.
Installing opencv on Windows 10 with python 3.6 and anaconda 3.6
Even if Windows 10, it should work also on Linux...
Also, try use cv2.cv2 syntax and see what happens..

Install jdk in many windows servers using chocolatey

We are starting a new project where I have to install JDK and JRE into Windows 2008R2 servers. I want to use Chocolatey for this. As a beginner could any of you suggest me.
If you search the Chocolatey Website, you will find packages for both the JDK and JRE. Here are the relevant links:
Search Chocolatey.org for JRE Packages
Search Chocolatey.org for JDK Packages
NOTE: Here I am using the ability to query only the Package ID using the id: notation.
You will see that a number of packages are returned for each search, and especially for the JDK, this is because there are different versions available. Only you will know which version you want though.
After you have identified if a package exists that suits your needs you can go ahead and install it. The instructions on how to do this are on the package page itself, for example here, assuming that you are happy to install the latest JDK.
choco install jdk
If there is not a package that exactly fits what you are looking for, you might have to implement your own package. The creation of a package, and what is required is too long to include within this answer, but I would encourage you to read the extensive documentation that we have available here.

Is there any Ubuntu 10.04 repository to download the most recent version of Eclipse?

I haven't found one to install Eclipse 4.2 Juno. Default Ubuntu repositories (I'm using Ubuntu 10.04) suggest me the archaic Galileo version. And I found the Eclipse's page on Launchpad which was updated in 2009.
I can, of course, simply download the archive with all the files from http://www.eclipse.org/downloads/, but that's not Debian way, is it? I mean, no automatic updates and other aptitude-managed cool things.
So, is there any repository that maintains the most recent version of Eclipse?
I think it is unlikely that you will find a newer package for Lucid. People tend to create packages for newer versions of Ubuntu.
If it's not possible to upgrade Ubuntu, what you could try is to make your own package but you would still not get automatic upgrades. From a quick look, it looks like that Juno needs some libraries to build that could be newer than the versions you have in your system, so this may end up being quite difficult. It could possibly be the reason why it is not available for Lucid in the first place.
If Juno works in your system, the quick and dirty solution is to first create a temporary folder, e.g. eclipse_3.8.0 and then do the following:
mkdir /path/to/eclipse_3.8.0/DEBIAN
mkdir /path/to/eclipse_3.8.0/opt
tar xzvf eclipse-juno.tar.gz -C /path/to/eclipse_3.8.0/opt
dpkg-deb -b --no-check /path/to/eclipse_3.8.0
This will create a deb package that installs eclipse in /opt/eclipse. You may want to put a control file inside the DEBIAN folder to add a description, dependencies, etc.
If you still want to give building a try, from the official ubuntu launchpad page for eclipse you can download the source files and especially the control files stored in the xxx.debian.tar.gz file. Take a look at the Debian wiki for some tips on how to build. Precise has the Indigo SR2 version and Quantal seems to have Juno.

installing glassfish on ubuntu karmic using synaptics package manager

I'm trying to learn to use glassfish for the first time. My IDE is netbeans and I've installed the glassfish plugin for netbeans. I opened up synaptics package manager and typed in glassfish. My choices were
imqv2
glassfish-activaton
glassfish-mail
glassfish-appserv
glassfish-toplink-essentials
glassfish-jmac-api
glassfish-javaee
I'm not sure what is in each package, or which package are needed. I can't seem to find anything that tells me anything descriptive about these packages.
I've seen a lot of tutorials on how to install glassfish, but I'd prefer to use apt-get / synaptics to install glassfish so that syntactics can take care of updating.
To strictly answer your question, I think that a typical install would at least include glassfish-appserv, glassfish-javaee, glassfish-toplink-essentials (for JPA).
But for development, I'd warmly recommend to use GlassFish v3 (because of the session preservation across deployments feature, to maximize productivity) and to install it manually in your home directory. Download the self-extracting installer file from here.
Do you want to run the latest and greatest software? It looks like Synaptic has Glassfish version 2 which is an entire major version out of date.
Just for the record: I love Ubuntu and their (well, Debian's) package management system. However, for any Java applications, I prefer to do manual installations. So, my Maven, Eclipse, Tomcat, Glassfish, etc. were all done through manual installs for the newest version... and because sudo apt-get install winds up throwing the app in some weird place and can have unexpected behavior.
Here is how you can do a manual install...
Download Glassfish: wget http://download.java.net/glassfish/v3/nightly/latest-glassfish.zip
Extract the archive anywhere on your filesystem
Inside your IDE such as Netbeans or Eclipse, setup a new server and point it at where you extracted the file
It's also useful to add a new environment variable to ~/.bashrc file, which will make it easier to start the server from the command-line, e.g. $GLASSFISH_HOME/bin/asadmin start-domain domain1
Another cool thing to try, if you're into maven, is to use the maven-embedded-glassfish-plugin. It's a clean way to get a web app up and running and not need to manually install glassfish and not even have to use an IDE.
You might also try asking this question at superuser.com if you really want to get it working with Synaptic.
i dont know if this here is still open...
but if you know how to handle shell commands on ubuntu then you might find this here helpful:
http://www.nabisoft.com/tutorials/glassfish/installing-glassfish-311-on-ubuntu