-
Notifications
You must be signed in to change notification settings - Fork 668
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add dockerfile #83
Add dockerfile #83
Conversation
Many thanks for that, Daniel. I'd suggest minor changes before merging: as far as I could check, your PR don't cover all the steps from the setup script. The And what is the error you refereed to when reading the CSV, can you share it? |
|
||
To achieve this goal, unprecedented, we invite everyone to train the intelligence, collect information, cross databases, validate hyphotheses and apply Machine Learning with models competing against each other and getting combined in ensembles with higher precision than any previous option. | ||
To achieve this goal, unprecedented, we invite everyone to train the intelligence, collect information, cross databases, validate hypotheses and apply Machine Learning with models competing against each other and getting combined in ensembles with higher precision than any previous option. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix typo of a typo fix: hypothesis (not hypotheses) hahaha… (and the same for line 11).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
xD
65bde9c
to
076a06d
Compare
@cuducos I've added in the documentation the instruction to copy the config.ini. I did it because if we add the About the problem when reading the csv file, that is the error: And thanks for fixing my typo... hahaha |
Many thanks again, @dsakuma — copying the config file seems good. About the |
@cuducos @dsakuma jupyter/datascience-notebook:latest image is based on image probabily the python version is 2.7. @cuducos the project uses Python 3.5 or 2.7? |
guys, |
@gwmoura the project is based on Pyhon 3, maybe that's not that clear, but this is what the @dsakuma using |
8d0cc63
to
6e9d606
Compare
Well… I'm not with my laptop this weekend so I can't help but ask: has activating the environment fixed the |
6e9d606
to
ee6f9f9
Compare
@cuducos, @gwmoura, sorry I was very busy this week and I could not work on this PR before... But I finally figure out what was going on with the UnicodeDecodeError. It was because 'xz' compression being used in the datasets, that pandas was not able to read becuase it was outdated. The PR #88 added the pandas version requirement and fixed my problem. I've added We can check the python version in bash by running: And in the notebook by running: Now I was able to run the entire notebook (translate and descriptive analysis notebooks). What do you think? |
Yay! That works $ docker-compose run --rm jupyter python -V
Python 3.5.2 :: Continuum Analytics, Inc. 🎉 (Ok, I confess, I added the emoji myself…) The only thing I think we whould fix before merging is the instructions. It points users to Any cleaver way to do it? I just checked ...
[I 20:50:35.764 NotebookApp] The Jupyter Notebook is running at: http://[all ip addresses on your system]:8888/
[I 20:50:35.765 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). |
@cuducos, I think in this case the problem can be resolved configuring the Docker for mac ou for windows, Docker Compose or Docker Engine can not resolve this. Because Docker containers runs in virtual machines on Windows and Mac. |
I know, but that's not the point, @gwmoura — the priority is offering beginners an easy way to get started (even if we have to offer instructions per platform) and I don't feel good in just saying get you Docker configured properly, n00b hahaha… Is |
@cuducos I sorry, understand now! 😄
|
@cuducos and @gwmoura using "native" Docker in Mac I was able to access the notebooks using The result of a
Maybe you could send the information from yours @cuducos, in order for us to take a look. |
Good news, @felipeclopes! But I'm curious why localhost does not work in your Mac... I can change the instructions to point to Is this the best solution? |
I was testing, and I think it will be necessary create 2 instructions, one for docker native and another for docker toolbox. I will write something today. |
I see no problem in having instructions for Linux and for macOS/Windows users separately. Unfortunately neither |
BTW if anyone wants to explore this issue using my computer (the problematic one) we can pair on that. Maybe that's useful as I'm a total n00b in Docker. |
@dsakuma and @cuducos I think the run instructions should apply only to the environment which the instructions were provided by the installation guide, in this case the installation guide is not specific if you should install Toolbox or Native in Mac. My opinion is that we should focus only in the Native solution, since it is the newest and the long-term product for Docker on Mac. @cuducos do you have the native already or are you using toolbox, with |
@felipeclopes many thanks for this message. As I said, I'm a n00b in Docker. And being a n00b I wasn't aware that there is a native solution running on macOS. I keep Docker updated through ~/serenata-de-amor(branch:add_dockerfile) » docker --version
Docker version 1.12.2, build bb80604
~/serenata-de-amor(branch: add_dockerfile) » docker-compose --version
docker-compose version 1.8.1, build 878cff1
~/serenata-de-amor(branch: add_dockerfile) » docker-machine --version
docker-machine version 0.8.2, build e18a919 Anyway, if there's a cross-platform (Linux/macOS/Win) native solution, and if this native solution makes the Jupyter server accessible through If it's OK for @dsakuma I'll edit the instructions after merging because for me it's is quite awkward the fact that Docker instructions ended up more verbose than the regular ones. I guess this there's nothing wrong in the instructions themselves (so editing after merging), but the thing is I feel we're being super careful with Docker instructions (explaining each step) and super careless with regular instructions (run this, then that, then this other thing here, no question asked). So I might put my dirty hands on instructions as a whole to find a better balance. |
Yes, @cuducos! I'm totally ok with that. I wrote each step too detailed... It will be great a more concise instruction! |
Many thanks @dsakuma @gwmoura @felipeclopes It's official now! (Fix #80) |
This PR adds a Dockerfile to the project and update the documentation explaining how to use it.
The docker-compose was already created in version 2 syntax (as suggested by @gwmoura)
And I also fixed some typos in documentation.
p.s.: There is a problem when reading csv in the current notebooks. But I think it is an issue for another pull request. I'm working on that.