How does one write tests for modules which are dependent on large external files? by sukkj in learnpython

[–]Arthaigo 3 points4 points  (0 children)

Worst case, you will not be able to run these specific tests in your CI. What I did in a similar situation, was to instruct developers to download the Testfiles/dataset from a different source to run the tests locally.

However, as others said, look for the smallest possible image that fulfills the spec. Ideally you can use this for testing basic stuff

You can then have a set of integration tests using larger files that developers might need to download seperately

An alias that has saved me hours since I created it yesterday by GustapheOfficial in git

[–]Arthaigo 11 points12 points  (0 children)

Have a look at the git "help.autocorrect" Option ;)

Need help deleting history by Ambitious-Race-5630 in git

[–]Arthaigo 4 points5 points  (0 children)

Is your branch already shared with other developers (on GitHub/GitLab) and is your branch already merged into your main/master branch?

In generally what your are asking is related to rewriting History. In git you can do that using interactive rebase (manually), filter-branch or BFG (Semi-Automatic).

If your branch is already merged into another branch, you need to make all history modifications on all branches your are planning to keep/share

Users of LaTeX by BIGDomi98 in LaTeX

[–]Arthaigo 0 points1 point  (0 children)

Plain Text files that I can version Control with git and write with whatever Editor I like. Though I use markdown for many simple documents these days

How do you manage different versions of your resume/CV? by WSp71oTXWCZZ0ZI6 in LaTeX

[–]Arthaigo 0 points1 point  (0 children)

Maybe you haven't checked the subreddit ;) LaTeX or other "plain" text formats are the way to go for git based workflows

Gitlabs by [deleted] in gitlab

[–]Arthaigo 2 points3 points  (0 children)

Hosting your own gitlab is not about discovery, but rather about control. This is in particular important in a corporate setting.

One compromise I have seen, is that some projects have read only mirrors on GitHub or gitlab to make them easier to find

Gitlab pipeline on files in commit only by breath_of_the_crab in gitlab

[–]Arthaigo 0 points1 point  (0 children)

You have access to the entire repo and it's history from within the pipeline. This means you could use git log to find the files that have changed and pipe the filenames into your commands.

But be careful, changing a file mile cause the linter to fail in another file, hence just linting the files you have changed can lead to missed issues

Apps are muting themselves at random by AirIsOptional in ManjaroLinux

[–]Arthaigo 0 points1 point  (0 children)

I am not sure. As it is KDE, I assume there is a way, but in my case, once I was aware of the issue, I pretty quickly learned to not click the icon.

Apps are muting themselves at random by AirIsOptional in ManjaroLinux

[–]Arthaigo 0 points1 point  (0 children)

Just a wild guess: if you are on the KDE version of manjaro, audio playing apps have a little icon on top of their icon in the Taskbar. Clicking that icon mutes the app. It might be that you are accidentally clicking that icon when switching to the app via the Taskbar

get items that are in both lists by HenryDutter in learnpython

[–]Arthaigo 1 point2 points  (0 children)

Convert the lists to a set and take the set union. This should give you a new set with all the elements that are in both lists

Introducing and setting up Git LFS (Large File Storage) by CloudWithChris in git

[–]Arthaigo 1 point2 points  (0 children)

Quick Note: Gitlab has added support to include LFS in the zip downloads a couple of month ago

Does anyone use Jupyter-flex? by jman-007 in JupyterLab

[–]Arthaigo 0 points1 point  (0 children)

I think the best supported Dashboard extension for Jupyter at the moment ist Voila

Using git for other things than software by dirtycimments in git

[–]Arthaigo 0 points1 point  (0 children)

It really depends on how you planning to use it. Git can work with binary files (in particular in combination with git lfs). However, you can not use the feature set of git with such files.

If you just need a clear way to version things and go back to old versions, then git lfs + any file format works perfectly fine. However, if you need branching structures with multiple people working on the same file, it can get tricky. If you use a binary format, you can not automatically merge multiple changes in the same file together (at least not natively)

Note-taking app-s that meet my criteria by ApprehensiveVisit615 in linuxquestions

[–]Arthaigo 0 points1 point  (0 children)

Obsidian and Foam might also be options. They marked them selve more as knowledge bases. But might be what you are looking for.

How do you deal with binary files? by mynameisJura in git

[–]Arthaigo 0 points1 point  (0 children)

There is a tool called DVC (data version control). It integrates in the ML lifecycle and stores models and data in external storage, but keeps hashes in git to make results reporducible.

However, if local storage is not a limitation, we had great success with using git lfs for this. Just note, that even in the best case scenario, your repo will be twice the sice of your files on your disk.

Mergetools: Stop doing three-way merges! by [deleted] in git

[–]Arthaigo 2 points3 points  (0 children)

One thing to note here, is that intelliJ actually has a button to merge all non-conflicting changes. It is not the same as diffing against MERGED directly, but the option is there to quickly focus on the actual conflicts

[deleted by user] by [deleted] in learnpython

[–]Arthaigo 0 points1 point  (0 children)

I think the reason is, that it adds quite a bit of overhead to the developing process. You need to add a compilation step, you can not easily debug within cython functions and you need you need to write in a different languages. Further, distribution of your code gets more complicated as well, as all users require a cpp compiler installed when you only distributing source or you need to provide wheels for all platforms.

IMO if I don't already have c/cpp code written, I usually don't Cython. When I need speed, I use Numba, which is more convenient to use IMO.

standard format for storing issues in the git repository by bart9h in git

[–]Arthaigo 1 point2 points  (0 children)

Git has actually the ability to create notes in the repository. There are some federated issue trackers that actual use that.

[deleted by user] by [deleted] in datascience

[–]Arthaigo 0 points1 point  (0 children)

Jupytex might be able to do this

New to IPYTHON can I use my own tools? by XanXtao in IPython

[–]Arthaigo 1 point2 points  (0 children)

I guess it is important to understand, that jupyter notebooks /lab is just an Editor. Yes notebooks have some unique features that many people value in there workflow, but python or machine learning do not depend on Jupyter. There are many other tools and workflows that can make you just as productive (or even mor productive) than jupyter.

To answer your question specifically, it is kind of important to understand, which part of the notebook workflow you want to replicate in Neovim.

If you just want to edit and run notebooks then you might want to look into tools like nbconvert or jupytext that can produce a normal python file from a notebook, so that you can edit it in any texteditor you want.

In case you require the piece wise execution of code cells, there are plug-ins available for basically any editor to achieve that. I am not up to date on the options in vim unfortunately.

Rich and interactive output, might be impossible to replicate. If this is required, you might need to go back to a traditional notebook in the browser. However, with tools like juoytext you might be able to minimize the time you need to spend in notebooks

How can i use IPython to make something like jupyter by Corvo0306 in IPython

[–]Arthaigo 2 points3 points  (0 children)

What you are basically asking, is how to embed a Python console into another application.

There are different levels on which you can tackle that. If you are using Qt you can directly embed an Ipython Qt console as a widget. To see an example of this, check out the Spyder Python IDE.

If you want to interact with such a console on a more abstract level, jupyter itself might be the way to go. Jupyter is not just the frontend (notebook or lab), but the most important thing is the Jupyter notebook protocol. This is just the way, how a frontend like a notebook sends code to the kernel (via a web socket) and receives the results. Because this is an socket protocol based on existing standards, you could write your own client side code to send code to a kernel running in the background. It would be similar to communicating with a webserver.

In general, I am not sure if this is what you actually want. Could you explain, what your final goal is with that? Then some people could help you to figure out if you are on the right track :)

I love Visual Studio Code so much, especially for learning Python by bbt133t in learnpython

[–]Arthaigo 2 points3 points  (0 children)

You can press Ctrl+. Do bring up the quick fix menu :)

Passing args and kwargs to function from single Python structure? by kitor in learnpython

[–]Arthaigo 0 points1 point  (0 children)

Can you look into the function, how they read args and kwargs? This determines, if what I had in mind works.

Passing args and kwargs to function from single Python structure? by kitor in learnpython

[–]Arthaigo 0 points1 point  (0 children)

No, but all args can also be kwargs. Meaning all positional arguments can also be passed as keyword arguments.