Coder Social home page Coder Social logo

docker-ngsolve's Introduction

Docker-Container for ngsolve usage with Jupyter Notebooks

Installation

Make sure you have Docker installed and follow the instructions for your operating system to have it running.

Then, chose the directory, where you want to have the dockerfile and run

$ git clone https://github.com/schruste/docker-ngsolve
$ cd docker-ngsolve
$ docker build -t ngsolve .

Don't forget the . at the end of the 3rd line!

Running ngsolve and accessing the server

Now, you need to start the container and both bind the correct ports of the container to the ports of the host and bind your directory with the code you are working on to a directory in the docker-container, i.e.

$ docker run --rm -t -p 8888:8888 -v /path/to/code:/home/jovyan/tmpdir --name ngsolve ngsolve

here you replace path/to/code with the actual file path to your code.

In the output, you will see something like this:

[C 15:41:40.343 NotebookApp]

    To access the notebook, open this file in a browser:
        file:///home/jovyan/.local/share/jupyter/runtime/nbserver-7-open.html
    Or copy and paste one of these URLs:
        http://(7e5ca25e26ff or 127.0.0.1):8888/?token=f476cc82d45039420f4778347f1387071d9083a022bb14ee

Now, just visit

http://127.0.0.1:8888/?token=$TOKEN

where token is everything to the right of the equal sign.

This should connect to the jupyter notebook server and show the content of the directory in /path/to/code.

You can close the server either with Ctrl-C in your terminal, or with $ docker stop ngsolve in another shell prompt.

docker-ngsolve's People

Contributors

schruste avatar janoschpreuss avatar dies-das avatar ngsxfem avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.