Code Monkey home page Code Monkey logo

Comments (21)

catrevil avatar catrevil commented on July 27, 2024

Hi @Jyotisaini-jnu !

To my knowledge, there's no need to configure a WSL 2 Linux Kernel & integrate it into your Windows 10 system. This is not a bad thing, but as far as I know, you do not need to go as above and beyond as you have done. This does, however, give you a nice Linux development kernel within your Windows OS, which is, in my opinion, pretty neat!

I would say that with installing Docker Desktop, you should only need to go as far as being able to run the command

docker run hello-world

in your Windows command-line utility (I recommend using Microsoft's Terminal utility for this--let me know if you're interested in this & I can direct you, it provides nice integration with the WSL kernels & looks very pretty!). I am not aware of whether a docker account is necessary for this or not.

After successful installation of Docker Desktop to the degree such that you can run the above command in cmd or related utility, and with an updated ubermag version to 0.23, you will find useful information in this notebook:

https://github.com/ubermag/workshop/blob/master/tutorials/choosing-runner.ipynb

So, let me try to be concise:

  1. Install Docker Desktop to where you can run docker run hello-world in the windows command-line utility
  2. Ensure your ubermag is fully updated to 0.23 within your ubermag environment
  3. Run the linked notebook to see if everything works as expected (you should be able to explicitly call the docker runner and equally function as if there is no need to explicitly call it, as the process is automated)

FYI when you first call the docker runner, it will take a bit of time, perhaps a minute or more, while the docker image is pulled down and built on your local machine, after this, it will take mere seconds to run.

Please, if this does not make sense, let me know how I can clarify it further?

from workshop.

marijanbeg avatar marijanbeg commented on July 27, 2024

Hi @Jyotisaini-jnu, thank you for your question. I agree with @catrevil - if you install Docker and it is running, that's it. You do not need to log in to DockerHUB.

from workshop.

Jyotisaini-jnu avatar Jyotisaini-jnu commented on July 27, 2024

Hi @marijanbeg and @catrevil Sir.....Thanks for the replies. Actually ....after first try of Docker installation WSL 2 Linux Kernel failed comes in a dialogue box....... So, i thought may be it is important to install WSL2 . So...I reinstalled Docker with WSL 2 Linux Kernel.....

from workshop.

Jyotisaini-jnu avatar Jyotisaini-jnu commented on July 27, 2024

Yes sir (@catrevil ) your guided steps are pretty clear to me ......Thank you ......I will try it and definitely let you know about further difficulties....

from workshop.

marijanbeg avatar marijanbeg commented on July 27, 2024

Hi @Jyotisaini-jnu, have you managed to install Docker on your Windows machine?

from workshop.

Jyotisaini-jnu avatar Jyotisaini-jnu commented on July 27, 2024

Hello Sir (@marijanbeg ) everything is fine know and installed properly .....Thank you so much .....

from workshop.

marijanbeg avatar marijanbeg commented on July 27, 2024

Great, thank you for letting us know.

from workshop.

gaurav123shukla avatar gaurav123shukla commented on July 27, 2024

Hii jyotisaini-jnu
Has docker worked properly?
I am stuck with that in ubermag i could not run docker. Errors occured no such file or directory 'docker'. If you solved prolem please tell me how you did.

from workshop.

catrevil avatar catrevil commented on July 27, 2024

@gaurav123shukla do you have Docker Desktop installed? What platform are you running?

from workshop.

gaurav123shukla avatar gaurav123shukla commented on July 27, 2024

Yes sir I have istalled docker desktop,aloso it is running.I am using windows 10 machine. Sir I have submiited image in new issue also.
image docker
docker desktop image2

from workshop.

catrevil avatar catrevil commented on July 27, 2024

@gaurav123shukla great! And are you successful when you run the

docker run hello-world

command?
What version of ubermag/oommfc are you running (what version is listed when you run conda list)?

For both of these questions, you are best to run them within your conda ubermag environment. That is, within a conda command prompt, you will write

conda activate ubermag

to access the environment that you made when you installed ubermag via miniconda.

If you do not understand any of these parts, please, let me know?

from workshop.

Jyotisaini-jnu avatar Jyotisaini-jnu commented on July 27, 2024

Hi @gaurav123shukla .......I have just installed Docker and run the above mentioned command" docker run hello-world" in Anaconda Prompt, steps are shown in the attached word file including update check. But i did not run the codes yet.....Whenever i will run the commands i will tell you...Thankyou

Docker run hello world command.docx

from workshop.

gaurav123shukla avatar gaurav123shukla commented on July 27, 2024

from workshop.

gaurav123shukla avatar gaurav123shukla commented on July 27, 2024

Thanks sir :
Docker is working now ( when i run oommf a notification comes from the side of docker to" share" and no error such as above as i asked ).But sir for the crystal class Cnv again run time error is ocuuring.
run time skyrmion
Here sir I am sending ipynb file. Please sir check in your machine that error is occuring or not.
skyrmion.zip

from workshop.

catrevil avatar catrevil commented on July 27, 2024

@gaurav123shukla what version of ubermag/oommfc are you running? I know what your issue is & how to fix it depending on the answer to this question I have asked :)

Within your conda ubermag environment, you would run conda list, then tell me the associated version numbers :)

from workshop.

gaurav123shukla avatar gaurav123shukla commented on July 27, 2024

Thanks sir for giving hope to me ;
Here i am attaching my conda list.Please find attachment
list
list2
list3
list4

from workshop.

catrevil avatar catrevil commented on July 27, 2024

It looks like you don’t have Docker installed in that environment. Also, I notice you are still in (base), it is highly recommended you have a dedicated (ubermag) environment to run ubermag, so that you can avoid any compatibility issues or clashing modules/packages.

from workshop.

gaurav123shukla avatar gaurav123shukla commented on July 27, 2024

Sir
When i have to open jupyter notebook; I do open anoconda prompt cell , the i type conda activate ubermag then base change to ubermag and the type jupyter notebook. My apology sir, I send above jpg pictures without activate ubemag.
Sir how we installed docker in above mentioned ubermag. Sir please help me for it.

list5
list6
list7

from workshop.

marijanbeg avatar marijanbeg commented on July 27, 2024

Hi @gaurav123shukla, the error you get actually is thrown by OOMMF because the initial magnetisation state you defined is not valid. It has nothing to do with docker or ubermag. I would suggest you have a look more carefully at the examples we provide. Unfortunately, from the m_init function, I cannot figure out what initial state you wanted to use. Maybe if you give me more details about what state you want.

I see there is a duplicate question on this topic from you in open issues, so I am going to close that one. Please feel free to continue discussion here.

from workshop.

catrevil avatar catrevil commented on July 27, 2024

@marijanbeg it seems that it throws the same error as it would have before, when the tcloommfrunner on Windows was unable to handle the additional crystal class definitions.

Is there a way to make the error more explanative?
Or is it that it is the same error as before because it is also not a valid magnetic state/input to oommf?

from workshop.

gaurav123shukla avatar gaurav123shukla commented on July 27, 2024

Thanks marijanbeg sir, Now it is fine , I was incorrect in initial magnetization. Sir can u please attach here at least one or two ipynb file containing the initial magnetization state for skyrmion structure. Sir one file was in tutorial (skyrmion in a disk) but beside it if u have please attach it sir. It would be great support for me sir. As I am beginner, so i am facing basics problems sir. But i learnt a lot from tutorial. Thnaks sir

from workshop.

Related Issues (20)

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.