New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show subclasses when using pinfo/pinfo2/?/?? #11432
Comments
Our goal here is to get something like the following. Once it is working we can refine a nd get a better User interface:
Here we have only one subclass, we probably want to limit to the first few subclasses if we have hundreds. How to implement that.
Cd into the repository and do a dev-install :
now when you start Time to do modifications to the source code. They will be taken into account everytime you restart IPython . In our case we want to modify
Under this block we want to modify We can get all the subclasses of
We now want to join all the names by commas for example:
and let's now put that into
Good ! We've done the hard work. Now close to line 642 find Modify close to the end of the block to look like : append_field(_mime, 'File', 'file')
append_field(_mime, 'Type', 'type_name')
+append_field(_mime, 'Subclasses', 'subclasses') # line added Save the file, Open IPython and try the code at the top of this comment. If it works will go through how to commit it push it on github ad make a pull-request |
Assigning to @cmentzel :-) |
Following some question about branching/forking the repository, in particular do you need to do a branch, or to fork before making any changes. It is IMHO, mostly a question of taste, and where/when to put the complexity.
That is typically creating a named alternate reality that diverge from It is also in no way mandatory for the names of the branch on your local machine to match the names on github. It is also perfectly fine to push Here is a gif of me pushing on my local master branch to the master branch of my github fork, Here are some further instructions once your code is ready:
Git will tell you something like:
Visit the above URL and submit the pull request. We can figure out the rest from there. In particular once you have submitted the pull request that would allow me to do extra fixes and the given branch if necessary. Git is complex and take some time to grasp, but regardless of what you do you will have a really hard time breaking anything. |
Great, just pulled the trigger |
Yay! AppVeyor failed, looking through logs now. Not sure what I am looking at... |
Thanks for the walk-through and for doing all the work @Carreau !! |
You did the PR, I only guided you ! Happy to have your contributions ! Are you going to contribute regularly now ? |
See python/cpython#5066
We should probably match that.
Extra points, when possible display the tree hierarchy ?
The text was updated successfully, but these errors were encountered: