-
Notifications
You must be signed in to change notification settings - Fork 12
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
Make available for jupyterlab regardless of which kernel is used for a specific notebook #55
Comments
Hey. I wonder if you could install it in your JupyterLab env and then extend the |
Since the docstring processing is done kernel-side, I don't think that's possible unless you do hacks like the one mentioned by @martinRenou. For this to work on the JupyterLab side, I think a server extension should be developed that uses docrepr. But then, the internal process would be totally different, i.e. IPython would only send the raw docstring and the extension would process it and pass it to Lab's inspector (I guess). |
To note, I'm not sure there's anything we can do about it directly on the Docrepr end, as opposed to something on the JupyterLab side. I imagine your users already need to install
The prospect of less experienced users hacking
And at least for full operation, docrepr needs not just the docstring, but a bunch of info about the object as well. You either need to gather that kernel-side, or serialize the whole object. @ccordoba12 how do we currently do it in Spyder for our own help viewer in BTW, @martinRenou thanks for the nice acknowledgement in the blog post! Would you mind linking to my GitHub instead of some old Twitter that I almost never use? (I also have my Gerlach.CAM website, but I need to get the DNS working again, heh) |
Sure :)! Doing it now |
We ask the kernel for the object's docstring (using the That's what, in my humble opinion, a server extension for JupyterLab should do too. |
I just read https://blog.jupyter.org/inspector-jupyterlab-404cce3e1df6 and I am excited to see that this repo was revived last fall, thank you for working on it again! Currently it seems like I need to have docrepr installed in every virtual environment where I want to use it. I usually have a separate environment for my jupyterlab install and then use nb_conda_kernels to work with other environments. For this workflow it would be convenient if docrepr could just be installed once (in the jupyterlab env) and then work for jupyterlab launched from that env, regardless of which kernel a specific notebook is using. Would it be possible to implement this feature or is it relatively hard/time consuming?
The text was updated successfully, but these errors were encountered: