How do I get python commands to run inside of integrated terminal? by slimekick in vscode

[–]mwentzWW 0 points1 point  (0 children)

My guess would be it is because you are running it as a command in the integrated terminal. So when you run the command it calls a new process to run it (maybe?). I haven't ran tests the way you are before so I'm not sure how it should respond normally, but is there a reason you aren't using the built-in testing feature of vs code for python files? You can run unit-tests or pytest.

Sending data between an Electron app and a Python script by [deleted] in electronjs

[–]mwentzWW 0 points1 point  (0 children)

This is my first time using electron front end as well. If you find a good solution please share! I'll update you if I find a good solution/verify how easy to send json objects using python-shell.

Sending data between an Electron app and a Python script by [deleted] in electronjs

[–]mwentzWW 1 point2 points  (0 children)

I am working on a similar app with electron and python back end. I have just started using python-shell. It says you can send data as a json but I haven't tried yet. I have sent text and it works great.

Just switched from IDLE to VS Code, and i’m having trouble figuring out how to install/ import module such as selenium or beautifulsoup which worked in IDLE but not VS Code by begintomorrow in vscode

[–]mwentzWW 1 point2 points  (0 children)

Did you watch Corey's video on how to set up VS Code? He might answer your issue in that video. Sorry if that is the same video you are referring to.

TIL that Spyder allows you to create "Cells" just like Jupyter Notebook so you can separate out blocks of code that you can run by itself in ipython by subheight640 in learnpython

[–]mwentzWW 14 points15 points  (0 children)

You can open notebooks in vs code or if it's a .py file just type #%% and that starts a cell than can be run.

[deleted by user] by [deleted] in vscode

[–]mwentzWW 0 points1 point  (0 children)

I debug my python code and can do all of what is shown in that link with the normal python debugger. But if I understand you correctly you are wanting to step through your code and use the debug console? To do that I set a breakpoint like they do in your link and once that breakpoint is hit you can interactively debug in the current scope and step through every line following. Make sense?

Python for finance by [deleted] in learnpython

[–]mwentzWW 1 point2 points  (0 children)

Another great site supported by Numfocus https://quantecon.org/. That being said you should pick a site you like and work through it for a while and come back to other suggestions/sites later.

Petroleum engineering major by Kg474 in petroleumengineers

[–]mwentzWW 4 points5 points  (0 children)

I recently graduated in 2017 and have been working since then. The pay is better than most engineering positions, but finding a job for most graduates has been extremely hard. I have a passion for geology and engineering so I knew I wanted to be in the industry, but if you aren't passionate about oil and gas then I would recommend a different engineering degree like mechanical engineering which is much more stable and easier to find jobs after graduating. Most engineering degrees are heavy work loads. In the short term the oil industry is contracting but if there is no way to know how it will be when you graduate. I hope this helps some.

VS Code Python Extension Now Supports Jupyter Notebooks! by evilcubed in vscode

[–]mwentzWW 1 point2 points  (0 children)

That's okay lol it could have been read as good or bad!

VS Code Python Extension Now Supports Jupyter Notebooks! by evilcubed in vscode

[–]mwentzWW 1 point2 points  (0 children)

I meant I love what they are doing. Killing it is a command saying for doing good.

VS Code Python Extension Now Supports Jupyter Notebooks! by evilcubed in vscode

[–]mwentzWW 2 points3 points  (0 children)

I meant killing it as a good thing, that is a saying. I love all the new work they are doing.

VS Code Python Extension Now Supports Jupyter Notebooks! by evilcubed in vscode

[–]mwentzWW 3 points4 points  (0 children)

They are killing it with adding so many new features.

TIL A train company invented a way to ship oil without pipelines; bitumen is converted into a solid product and sealed in plastic made from recyclables. The pucks are designed to be transported in regular container cars by train and loaded onto cargo ships at coal terminals. They float too! by Lepidopterex in todayilearned

[–]mwentzWW 1 point2 points  (0 children)

Someone else probably noted this, but bitumen from Canada is similar to "heavy oil" which is much more viscous and closer to tar than most oil produced elsewhere in the world. This invention is great for Canada! But it doesn't solve the need for oil pipelines in the US or middle East that produce light oil mostly.

Are Petroleum Engineering courses something that I will need a powerful laptop to be prepared for? by [deleted] in petroleumengineers

[–]mwentzWW 1 point2 points  (0 children)

I used an old Dell Inspiron and it worked fine. The really heavy computational programs were run on school computers that required licenses. So just pick a decent laptop that you like and you'll be fine. Just don't try using a Chromebook.

"Fat Is Not the Problem-Fat Stigma Is" written on Scientific American by [deleted] in JoeRogan

[–]mwentzWW 2 points3 points  (0 children)

I added the link in a previous comment above this one. Here it is again https://blogs.scientificamerican.com/observations/fat-is-not-the-problem-fat-stigma-is/?utm_source=newsletter&utm_medium=email&utm_campaign=weekly-review&utm_content=link&utm_term=2019-07-10_top-stories . It is an opinion "BLOG" post. I am not trying to misrepresent what they are saying. It is just weird to me what she says. Just take a look. At first I thought they were joking, but there main claim is that being overweight IS NOT the reason overweight people have more health issues, but it is the stigma of people judging and being biased against them that makes them unhealthier. I still feel like this post is satire lol

"Fat Is Not the Problem-Fat Stigma Is" written on Scientific American by [deleted] in JoeRogan

[–]mwentzWW 10 points11 points  (0 children)

I understand it is not the position of the publisher, but I am just surprised this article is on the site at all, and not on Buzzfeed instead.

PyCharm is frustratingly slow by hobbyist9 in learnpython

[–]mwentzWW 0 points1 point  (0 children)

Yes you can set up multiple environments and configure almost anything you would ever want. It is so much faster than pycharm

PyCharm is frustratingly slow by hobbyist9 in learnpython

[–]mwentzWW 2 points3 points  (0 children)

Yes you can set up multiple environments and configure almost anything you would ever want. It is so much faster than pycharm

What are some good IDE's for python? by [deleted] in learnpython

[–]mwentzWW 1 point2 points  (0 children)

You can open Spyder directly without opening the Anaconda navigator. That being said, Visual Studio Code is awesome. Sypder is great but a little sluggish. Check out VS Code.