I have installed pycharm. I have installed python version 2022.
I need to know how to connect Pycharm with Python. I am new in this, so not sure.
Once I opened Pycharm I saw already that my project was showing in Pycharm. It prompted me to select trust. I trusted the content and it was showing me the selection for 2 versions of Python. I was not sure if that is the way to connect, or is there another way to connect ?
Related
Software info:
Windows 11. When strange scenarios occurs, I did NOT used with VM (virtual machine). But I have created some VM boxes.
Hardware info:
a figure illustrates my currently used device
Here is a figure illustrates my currently used device.
I use notebook with MSI.
Occur in the app:
Spyder which is a subset of Anaconda Navigator.
Issue:
[a figure to my strange scenarios]
(https://i.stack.imgur.com/6JQfz.jpg)
I first met this issue.
I met strange scenarios in anaconda, in Spyder --
I saw a console named history.py and I could NOT create a new console.
Can anyone tell me why?
Any replies to the solution will be grateful.
Things I have tried (respectively).
1.I have tried to restart the Spyder and Anaconda Navigator.
2.Then I have tried to restart my notebook.
Browse some posts at issue tracker of Anaconda Navigator.
https://github.com/ContinuumIO/anaconda-issues/issues
But the issue is NOT solved yet.
I ensure why it happens.
There were crashes which are caused by the infinite recursive call at runtime.
When I ran the code, it also crashed.
The issue is solved although I don't know why the issue occurred.
Suggested by the website:
https://github.com/ContinuumIO/anaconda-issues/issues/5193
I used the following command in Anaconda Prompt:
spyder --reset
And it was successful:
Then I restarted Spyder, and the issue disappeared:
Is there any way to do code navigation in VS Code?
As mentioned by commentors here: navigate to interface's implementation, it seems that for linux users none of the shortcuts work. I'm using WSL2 and the shortcuts work on my windows but not in my ubuntu 18.04.
Any workarounds/solutions?
P.S. this similar question does not help - I have not found any (remote or otherwise) extensions that help and I'm not using python: code navigation for remote server in vs code
I'm relatively new to using python have used pygame as a place to better understand how everything comes together.
I recently upgraded my laptop form a 2012 Macbook to the 2019.
Just wondering why the games I made on my 2012 are running soo much slower on my 2019 macbook. Managing packages with conda.
I don't know much but I suspect it may have to do with either
The comp resolution upgrade (which I'm doubtful)
method of installation of pygame
Initially, I Downloaded python3 with homebrew and then installed pygame (pygame would show a blank screen)
I then installed conda and managed packages through it.
I doubt it has to do with the way I have written it, I'm sure it's quite inefficient but I was achieving fps's of 60 for the same code.
If someone could guide me to where to find out more information It would be greatly appreciated.
Cheers.
This seems to be a problem with how MacOS run Pygame. While your game is running, right-click it's icon in the Dock and select Show in Finder. Then in the Folder that shows up, you will see the Python Interpreter executable. Right-click it and click Get Info, and under General check the Open in Low Resolution.
Now your game should run fine. And no, Pygame's resolution will not be "Low".
I resolved this issue by launching pygame in fullscreen. More of a workaround but a solution nonetheless.
Also if you do choose to do this be sure to create a key to exit the screen otherwise you'll need to restart your computer.
I'm woking on a selendium and airflow project for bing rewards and I'm hoping I don't have to install Microsoft edge as my computer is always running out of space. Does anyone know off hand if it's possible to make Selenium scripts for a driver if you dont have the dmg installed on your computer?
yes you can do that using RemoteWebDriver.
but make sure your remote device, cloud etc must have that respective browser which is pointed by RemoteWebDriver.
Refer below:
https://github.com/SeleniumHQ/selenium/wiki/RemoteWebDriver
Example code:
https://gist.github.com/djangofan/4127074
I am trying to connect to a DB2 mainframe from my machine through Jupyter Notebooks.
I am on a 32-bit machine Windows 7 machine.
I am using Python version 3.6.1
Did a bit of research and from what i could find online there are two ways to do this....
Packages:
pyodbc,
ibm_db
I think i read in another post that the official way to do it is using ibm_db.
I tried a couple of times with pyodbc but couldn't get it to work.
So i figured i would try ibm_db.
I tried install ibm_db using pip and easy_install but i keep getting the following messages.
Could someone please provide some guidance?
Also, my ODBC Data Source Adminstrator Window, system DSN tab looks as follows
I was trying to use the pyMainframe DSN but couldnt get that to work either.
As you can see i do have an iSeries Access ODBC driver installed. Not sure if python can use this.
I am a bit of a noob. Thanks in advance. Please let me know if you need any additional information
The issue is that i was using python 3.6.1
For python 3 the only version supported is 3.4.0.
No other version of 3.4 is supported, not sure about < 3.4
Thanks all for your help.
Here is where i found the answer. + a little trial and error.
https://groups.google.com/forum/#!topic/ibm_db/6-sOpk4zkCU
You're not connecting to a mainframe (z/OS) you're connecting to a midrange system (IBM i aka iSeries/AS-400) completely different machines and OS.
Using ibm_db requires the IBM DB2 connect product ($$$) to connect to IBM i.
You're going to want to use just an ODBC connection via pyodbc(?).