Offline python plugin installation for Netbeans? - python

I have a latest windows netbeans version (6.9.1) and i want to instal a python plugin for it. I have no problems on a computer that has internet connection, it's just tools->plugins->Available. But i have another computer that don't have internet connection available :(. Is it possible to install python addin for it? Where i can download the .nbm file?

Check:
/home/username/netbeans-6.9.1/php/update/download
I tested it with the php plugin so you should check the python directory. Or if you are using windows you may find somewhere similar.
If no .nbm file there, you may try:
Uninstall python plugin from the other computer, and reinstall it. Don't restart NetBeans immediately, check the directory, and copy all the files.

Click Tools -> Plugins, and in the plugin dialog box, click the "Downloaded" tab. On that tab, click the "Add Plugin" button, which will open a file browser dialog box, allowing you to give Netbeans the location of your downloaded .nbm file. Easy!
You can find Netbeans plugins here: http://plugins.netbeans.org/PluginPortal/

Related

Python packaging tools not found problem in pycharm [duplicate]

I've downloaded pygame-1.9.1release.tar.gz from the Pygame website. I extracted and installed it and it's working fine in the command line Python interpreter in Terminal (Ubuntu). But I want to install it for some IDE, like PyCharm. How can I do it?
Well, you don't have to download it for PyCharm here. You probably know how it checks your code. Through the interpreter! You don't need to use complex command lines or anything like that. You need to is:
Download the appropriate interpreter with PyGame included
Open your PyCharm IDE (Make sure it is up to date)
Go to File
Press Settings (Or Ctrl + Alt + S)
Double click on the option that looks like Project: Name_of_Project
Click on Project Interpreter
Choose the interpreter you want to use that includes PyGame as a module
Save your options
And you are ready to go! Here is an alternate (I have never done this, please try to test it)
Add PyGame in the same folder as your PyCharm file (Your PyCharm stuff is always in
a specific file placed by you during installation/upgrade)
Please consider putting your PyCharm stuff inside a folder for easy access.
I hope this helps you!
For PyCharm 2017 do the following:
File - Settings
Double click on your project name
Select Project Interpreter
Click on green + button on the right side of the window
Type Pygame in search window
Click Install package.
Not I'm saying that the answers above won't work, but it might be frustrating to a newbie to do command line magic.
If you are using PyCharm and you are on a Windows 10 machine use the following instructions:
Click on the Windows start menu and type cmd and click on the Command Prompt icon.
Use the command pushd to navigate to your PyCharm project which should be located in your user folder on the C:\ drive. Example: C:\Users\username\PycharmProjects\project name\venv\Scripts.
(If you are unsure go to the settings within PyCharm and navigate to the Python Interpreter settings. This should show you the file path for the interpreter that your project is using. Credit to Anthony Pham for instructions to navigate to interpreter settings.)
HINT: Use copy and paste in the command prompt to paste in the file path.
Use the command pip install pygame and the pip program will handle the rest for you.
Restart you Pycharm and you should now be able to import pygame
Hope this helps. I had a fun time trying to find out the correct way to get it installed, so hopefully this helps someone out in the future.
I just figured it out!
Put the .whl file in C:\Program Files\Anaconda3
While in the folder, click on the blue File tab in the upper left corner of the Window Explorer (assuming you're using Windows)
Click on Open Windows PowerShell as administrator
Write or just copy and paste: py -m pip install pygame
It should start installing
Done!
I hope it works for you. I know it did for me.
I already had pygame installed with python38-32
since its working just fine with it. I used this version of python us my project interpreter.
1.File -settings
2.according to your settings look for project interpreter
3.click on your current project interpreter and click on the add symbol
4.choose system interpreter
5.select the python version thats works with pygame for you
6.Note: some versions of pygame don't work with some versions of python be sure
of what are you doing.
7.hope it works.

How to open ipynb files into browser by double-click

Previously, I had Canopy installed and at that time, I could simply double click on ipynb files and open them into the browser.
However, later I needed Anaconda and once I installed it, this feature was gone.
Now I just want to be able to simply double click on ipynb files and the file gets open into the Firefox. Is it possible?
I read about this:
nbopen
pip install nbopen
python -m nbopen.install_win
But it didn't solve my problem. I appreciate any help.
Yes, this is possible. Running python -m nbopen.install_win installs the executable nbopen.exe in the Scripts folder of your anaconda directory. For me this is:
PS> (gcm nbopen).Path
E:\Programs\anaconda\Scripts\nbopen.exe
The first line gets the path of the nbopen command (using PowerShell). If you are not using PowerShell you can find your conda directory by right-clicking on any (I)Python executable in your start menu and look at where it links to.
You can then associate the nbopen.exe file with the .ipynb filetype:
Right-click on a .ipynb file.
Click on Properties
Click on the Change button next to "Open With:"
Click on Browse, browse to the path you found out and select nbopen.exe.
Double-clicking on .ipynb files now checks if a notebook server is running and opens the notebook. If no server is running, one is started in the active directory.
Checkout this Firefox plugin. Python Notebook Viewer.
This plugin lets you view/render python notebooks without running notebook server. Once installed, set Firefox as default app to open ipynb files. From now onwards, you can simply open ipynb files by simply double clicking on it!
This saves a lot of time as most of the time developers are just keen on seeing a code. It also saves a hassle of browsing directories in Jupyter Notebook window to reach to a specific file.
If m00am's solution doesn't work and nbopen.exe file doesn't show up then do the following:
Uninstall Anaconda.
Install Anaconda again and make sure you add Anaconda to Windows path during the installation.
Then try m00am's solution again.
This worked for me:)

Edit with IDLE option is not available after installing Python 2.7 alongside Python 3.5. What should be done?

My IDLE option in the right click menu has disappeared.
I think it's because I use Python 3.5.2, but I installed Python 2.7.12 without uninstalling Python 3.5.2. Later I uninstalled Python 2.7.12 and from then on the .py files are opening in either Chrome but I cannot get it to open with IDLE. And the usual logo for Python scripts has disappeared. Instead now it has the logo in the picture. What can I do? I uninstalled Python 3.5 after the problem and reinstalled it. Yet the problem persists.
An alternative approach would be to modify your Python installation. I would advice against reinstalling Python because you stand to lose your installed modules and scripts. But if you don't mind starting over again, reinstalling Python will fix this.
To modify your Python installation:
Open the Control Panel.
Uninstall Python Launcher.
Click on Python 3.6 (or the version you
have.)
Choose Modify.
On the Optional Features page, make sure the
.py launcher checkbox is checked.
Proceed and wait for the setup to finish.
After it's done, you can either restart your computer or
sign out then sign in.
Now when you right click on your .py files, Edit With IDLE will show up in the context menu. Keep in mind that your .py files should Open With Python Launcher.
Hope this helps.
Option 1:
Right click on any .py file and click Open With and click choose default Program or Choose another app.
From the list that appears after if you see python.exe choose that otherwise click Choose another program or Browse option. Might that option appears after clicking More App in Windows 10.
Next browse to python insallation directory and select python.exe
Option 2:
Run regedit and goto key HKEY_CLASSES_ROOT\.py and change the default to Python.File.
After that logout & login. Context menu will appear again.
At time of saving python code...will display two extensions .py and .pyw.
Save file using .pyw extension, i.e. instead of dropcols.py save it as dropcols.pywwill solve your problem. This worked for me.

Installing SublimeREPL offline

I'm trying to install SublimeREPL on an offline computer (it has secure data and so can't be Internet-connected). Any ideas for how to do so?
I can copy any installation files to a USB drive, but haven't found any--everywhere I've seen insists on using the Package Manager (which requires connection to function properly)
You could try download and install SublimeREPL using Package Control on a computer with an internet connection and then in Sublime Text go to preferences > Browse packages… where you should find a folder named SublimeREPL. Copy that folder to the same directory on the other computer. That should work.

How to configure Eclipse for PyDev? Python doesn't appear in Preferences window

I'm trying to install PyDev in Eclipse 3.6 on Windows 7.
I have Python 2.7 successfully installed. I installed PyDev through Eclipse, and restarted.
When attempting to configure Eclipse to find my installed Python, (Window -> Preferences) the list that appears does not contain Python. (See image below.)
If I go back to Help -> Install New Software to check what has been installed, PyDev appears as having been installed.
I've tried quitting Eclipse and opening again, with no change. I tried uninstalling PyDev, and re-installing, with no effect. Any ideas how to get Eclipse to see PyDev?
There's an issue when installing plugins under Windows 7 with UAC (User Access Control) active. You need to run as administrator. Read my blog post for more details.
I had the same issue with interpreters not seen for pydev/python.
I followed the link1 below, I had to use the PyDev 3.2.0.zip file and install it with 7zip in the dropin folder, for my system it is:
"eclipse-SDK-3.5.2-win32-x86_64__classicversion\eclipse\dropins" folder. (if you just right click to unzip (not using 7zip) in the dropins folder, you get the 0x80010135 Path too long error).
Then I had to reboot my windows 7 64bit pc to see the pydev/python interpreters.
Then follow link2 and watch derek banas python online videos where he goes over the installs and tutorials.
link1: http://pydev.org/manual_101_install.html
then at the bottom of the page select
http://pydev.org/manual_101_interpreter.html
Note: I also had to use the unzip trick for other eclipse updates ...

Categories