Recent content by SamRoss

  1. SamRoss

    Python Why do 0.1 and 1/10 work but 0.3-0.2 doesn't?

    I get that, but I know that 0.1 also cannot be represented in binary so why does the computer NOT have a problem with doing 1/10?
  2. SamRoss

    Python Why do 0.1 and 1/10 work but 0.3-0.2 doesn't?

    I understand that some numbers cannot be represented in floating point but I don't understand why the way we obtain those numbers matters. In python, if I type print(0.1) or print(1/10) I get 0.1 but if I type print(0.3-0.2) I get 0.09999999... Why the difference?
  3. SamRoss

    Navigating the Tensions in Ukraine: A Scientific Perspective

    If it makes you feel any better, Biden is very strongly anti-war. He was a critic of our ongoing wars in the Middle East and the last thing he wants is to get involved in another drawn-out conflict.
  4. SamRoss

    How can I get the RUN button in Visual Studio Code to turn GREEN again?

    Yes, that is what I've been doing. I do have a heck of a lot of global variables which did seem awkward to me. I'll try the dictionary strategy and let you know how it goes.
  5. SamRoss

    How can I get the RUN button in Visual Studio Code to turn GREEN again?

    I'm not using git. In fact, although I've heard it mentioned over and over, I'm not really quite sure what it is. I suppose my next step should be to look into it. Dropbox is where I've been keeping all my important files for many years. Guess I'll have to make a change.
  6. SamRoss

    How can I get the RUN button in Visual Studio Code to turn GREEN again?

    Thanks for the help, @DaveC426913. What exactly do you need a screenshot of?
  7. SamRoss

    How can I get the RUN button in Visual Studio Code to turn GREEN again?

    No, I'm not. Should I be? Here are some pics of the make_worksheet function if it's helpful.
  8. SamRoss

    How can I get the RUN button in Visual Studio Code to turn GREEN again?

    Hello again @pbuk :) . I seem to be having the same problem even in the command prompt (except for the fact that running the master file from the command prompt did not stop other python files from working in vscode). Below are pictures of what's going on. I called my make_worksheet function to...
  9. SamRoss

    How can I get the RUN button in Visual Studio Code to turn GREEN again?

    Hi @Mark44. Thanks for the help. Unfortunately I'm still seeing the same behavior. It ran a couple times then stopped. I noticed something which might be a clue. I have a "make_worksheet" function which should generate as many versions of a worksheet as I want. After a couple run throughs with...
  10. SamRoss

    How can I get the RUN button in Visual Studio Code to turn GREEN again?

    I have been using Visual Studio Code for a couple months now and it has been fine. When I want to run some code, there is usually a little green triangle button in the top right corner that I can click on. A few days ago, that triangle turned white only for Python files (it is still green for...
  11. SamRoss

    LaTeX Trouble using PythonTex variables in Latex file

    I'm sure I will have use for it once I'm more comfortable doing some very simple things. Thank you again.
  12. SamRoss

    LaTeX Trouble using PythonTex variables in Latex file

    I did see that stackexchange post but when I tried copying and pasting the code, it didn't work. I downloaded TeXMaker and tried following your instructions but I'm still getting the same error. Here's what I did... 1. I entered the PythonTeX user command. 2. I chose PDFLaTeX from the...
  13. SamRoss

    LaTeX Trouble using PythonTex variables in Latex file

    Thanks very much. This seems to Thank you very much. I feel like I'm getting closer to solving this problem but I still have some questions. You said you used the steps pdflatex test.tex, pythontex test.tex, pdflatex test.tex. I'm not sure what you meant by that. Do you mean you converted the...
Back
Top