Trouble updating to Anaconda Navigator 1.10.0 (MacOS)

I am having completely the same issue (same Navigator version on macOS). I think I have spent several hours of all possible solution and nothing helped. The only solution that worked was to uninstall and install again. The environment setup remains the same so there is nothing to lose (but still it is strange thought) … Read more

How to import other Python files?

importlib was added to Python 3 to programmatically import a module. The .py extension should be removed from moduleName. The function also defines a package argument for relative imports. In python 2.x: Just import file without the .py extension A folder can be marked as a package, by adding an empty __init__.py file You can use the __import__ function, which takes the module name (without … Read more

How do you create a remote Git branch?

Simple Git 2.0+ solution: As of Git 2.0, the behavior has become simpler: You can configure git with push.default = current to make life easier: I added this so now I can just push a new branch upstream with -u will track remote branch of the same name. Now with this configuration, you will auto-guess the remote reference to … Read more

Global variables in Java

To define Global Variable you can make use of static Keyword now you can access a and b from anywhere by calling

Get a list of all git commits, including the ‘lost’ ones

Not particularly easily- if you’ve lost the pointer to the tip of a branch, it’s rather like finding a needle in a haystack. You can find all the commits that don’t appear to be referenced any more- git fsck –unreachable will do this for you- but that will include commits that you threw away after a git commit … Read more

How to change default Python version?

[updated for 2021] (Regardless if you are on Mac, Linux, or Windows:) If you are confused about how to start the latest version of python, on most platforms it is the case that python3 leaves your python2 installation intact (due to the above compatibility reasons); thus you can start python3 with the python3 command. Historically… The naming convention is that generally, most … Read more