Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 12 15:03
    kloczek commented #13017
  • Jun 12 14:41
    Carreau commented #13017
  • Jun 12 14:39
    kloczek opened #13018
  • Jun 12 14:30
    kloczek commented #13017
  • Jun 12 08:21
    Carreau commented #13017
  • Jun 12 05:29
    kloczek opened #13017
  • Jun 11 23:22
    dcronkhi commented #10941
  • Jun 11 15:55
    Carreau edited #13010
  • Jun 11 15:55
    Carreau edited #13010
  • Jun 11 15:55
    Carreau edited #13010
  • Jun 11 15:55
    Carreau edited #13010
  • Jun 11 15:50
    Carreau commented #13014
  • Jun 11 15:48
    Carreau closed #13015
  • Jun 11 15:48
    Carreau commented #13015
  • Jun 11 14:29
    moutazmuhammad closed #13016
  • Jun 11 14:28
    moutazmuhammad opened #13016
  • Jun 09 21:23
    DouglasPatton commented #972
  • Jun 09 11:46
    MrMino edited as member
  • Jun 09 11:46
    MrMino edited as member
  • Jun 09 07:33
    fuad47 opened #13015
Angus Hollands
@agoose77
@briankosw you can refresh an existing display with a new mime bundle
Steve Baeyen
@stevebaeyen_gitlab
Hi, I have a conda env nb_conda that i would like to use in Jupyter lab. I activated the nb_conda env and installed quast and shovill + "ipykernel install --user --name=quast_shovill", then deactivated the env, restarted Jupyter Lab , but i cannot choose the kernel. Anyody knows what i am doing wrong (installations by sysadmin with root priviliges). Could it be the --user parameter in ipykernel install ?
Sandeep Gupta
@skgbanga
does anyone know what is the best way of getting help from ipython magics.
e.g. if I want to see all the options of %run line magic.
Sandeep Gupta
@skgbanga
argh, one can simply do %run? to get the help.
Dr. Muhammad Anjum
@anjumuaf123_twitter
@skgbanga hi dear do you know about get_variable method?
Sandeep Gupta
@skgbanga
I do not. what is that?
Dr. Muhammad Anjum
@anjumuaf123_twitter
@skgbanga i just saw the code , it was written there
matrixbot
@matrixbot
geeky_gecko Good evening.
matrixbot
@matrixbot

testiosis Hi
Please assume I'm a newbie.
I want to learn python (widely used) and rust (everyone hypes it).
What I want to do:
1) Write "macros" for excel and word. Maybe including outlook. (For work)
2) Write really small apps for android(+iphone?) (menu with buttons triggering "hello world", calculate missing variable of equations {f=ma}, search a list)
3) Maybe even 3d games (i will never do those, but I want to make something like )

What I am asking for:
A) A recommendation for an ide like kivy https://alternativeto.net/software/kivy/ or what to install (even OS)
B) That can make android, iphone, windows, linux apps from the same source base https://alternativeto.net/software/beeware/
C) A tutorial for making a "hello world" app for android as fast as possible. (Proof of concept)

What are my problems:
I) A while ago I made a python online course. And then I had no clue how to do anything useful. (For example, where could a write a loop to change all names in a directory. And what I needed to install to do that,)
Ii) installing the software. I wasted days trying to install kivy and beeware on ubuntu 20.04. That failed, no clue if it was even my fault.
III) Not enough time -_-

PS I hate writing macros in VBA or trying to avoid it with long excel function use and changing the layout of the document. But that shortened my workload about 16h a month (2 workdays). And don't get me started on excel forgetting my local links (unless you put a point . In a specific setting menu you wouldn't even know existed if you didn't google it)

I have an iPhone 6s, and would like to make apps for it on a linux machine.

Dr. Muhammad Anjum
@anjumuaf123_twitter
Hi Any one is there ??
alat-rights
@alat-rights
hiii
Dr. Muhammad Anjum
@anjumuaf123_twitter
hi please
@skgbanga hi sir , I am beginner in ubuntu and python .@anjumuaf123_twitter
I need some help to open jupyter notebok in ubuntu
I followed these instructions https://www.digitalocean.com/community/tutorials/how-to-set-up-jupyter-notebook-with-python-3-on-ubuntu-18-04
for installation and to create python virtual environment for jupyter
and same codes and names of directory and others
matrixbot
@matrixbot
testiosis What's the prob?
aaronxiong
@aaronxiongli
Hello, I built a Python plugin for display machine state.
Would anyone try and give me some feedback? Thanks a lot ~
https://github.com/yoobool/flask-state
scorp08
@scorp08
Hello all
Hello all
I want to get list of %load_ext modules , looked some places in ipython.magic and core dirs but could not find any solution or function to get all modules. sys.modules gives all the libraries which is not neccessary. How can I get list of %load_ext??
2 replies
Andreas Mueller
@amueller
Hey! quick question, is there an alternative way to hook into the autocomplete that is not __dir__? and/or is there a way to change the order in the autocomplete?
Min RK
@minrk
Not currently, I believe. Do you have a specific use case in mind? Since objects come from multiple sources, e.g. set(dir(obj)) | set(dir(obj.__class__)), ordering is enforced to be alphabetical.
Min RK
@minrk
However, completions that come from jedi may be grouped by type in the UI, I believe
Andreas Mueller
@amueller
Thanks @minrk! Well, basically I'm trying to make suggestions better for my particular use-case (which is data-science related, shocker). I want nice autocomplete in notebooks. If you look at autocomplete in IDEs, they are ranked by relevance which makes it much more likely that you can do <tab><return> to finish the command. Hm jedi is pretty deeply integrated in ipython, right? I figure I could monkey-patch ipython but that seems not very sustainable ;) I could try to hook into Jupyter but I would love it to work across different notebook implementations, so IPython would be the easiest place to do it.
Michał Krassowski
@krassowski
But if you just want to add new suggestions you could use complete_command hook I believe get_ipython().set_hook('complete_command', your_func, re_key='.*')
Andreas Mueller
@amueller
Thanks @krassowski. The reason I was looking at ipython was that I'd love to have this work across front-ends. I'm at Microsoft these days and having this work in their web interfaces as well as VSCode and JupyterLab and classic notebook would be great ;) I'll look at those extensions though, thanks! It's a bit unfortunate that there is no more homogeneous plug-in ecosystem for the frontends right now :-/
6 replies
RK
@sonthonaxrk

Hey IPython developers :) thanks for all your awesome work.

Recently I've been trying out some GUI based workflows in Jupyter, and I've hit some stumbling blocks around asyncio. Where I get deadlocks when trying to wait on Comm events. As it turns out the kernel will do process one message at a time. Since running a cell creates a message, and waiting for a Comm depends on a message, the kernel will hang if I try to wait for a Comm in a cell.

I thought the problem would be somewhat intractable, but actually I think it's quite simple to solve. I'm happy to do it myself. I think all I would need to do is to treat Comm events as a special case that can send asynchronous messages. I think this makes sense, because the other message types are definitely synchronous (like execute_request); but Comm events are not. For example, cell execution obviously needs to happen atomically; but should a button click really be blocked by another cell doing an await asyncio.sleep()?

Happy to do this work myself, as I've spent quite a bit of time figuring out how IPython works. Just wondering what you all think :)

RK
@sonthonaxrk

Hey all,

Quick question: how do I add custom kernels to the registry of kernels Jupyter can use? Is there a hook for that?

So, for instance, when I install xeus-python, how does Jupyter know it's installed?
RK
@sonthonaxrk

https://jupyter-client.readthedocs.io/en/stable/api/kernelspec.html?highlight=install-kernel.html#jupyter_client.kernelspec.KernelSpecManager.install_kernel_spec

Cool found it :)

Sorry should have searched more. I suppose disperate docs is the side effect of splitting everything up into different concerns.

5 replies
ipython, jupyter, jupyter-client, ipykernel, ends up being a lot.
RK
@sonthonaxrk

https://github.com/sonthonaxrk/async_gui_ipython_kernel

I think I've done something kinda cool and opens up some possibilities with IPython.

RK
@sonthonaxrk
Hey I've written a pull request, that I think could be really useful for IPython. ipython/ipykernel#589
That fixes the issue I described in my earlier messages.
However, I'm getting test failures on (ubuntu, 3.6) and (macos, pypy3), but not on (macos, 3.6) or (ubuntu pypy3). I'm really struggling to reproduce them locally.
Is this an issue with the tests or my code?
RK
@sonthonaxrk
Ah, it's just flakey. Rerunning the tests.
Some sort of timeout, maybe the github ci runners share some state.
evidlo
@Evidlo:matrix.org
[m]
A few months ago I work on a plugin for supporting 'cells' in a regular .py file
I was hoping somebody might give input or comment on its usefulness: https://github.com/UIUC-SINE/ipython-cells
onus tepolov
@blastoporeus_twitter
can %run accept a variable as a file name? I can't seem to get it to work. eg) %run '/some/path/file.ipynb' works, but if I have target = 'some/path/file.ipynb' then %run target, it says ERROR:root:File 'target.py' not found.
Min RK
@minrk
@blastoporeus_twitter try %run $target to get variable expansion
1 reply
nbuntrust
@nbuntrust
Is there any way to gain access to the SingleUserNotebookApp data from an ipython extension?
nbuntrust
@nbuntrust
Right now I'm parsing syslog data on the fly to get the IP of the connected user, but of course if SingleUserNotebookApp is writing it into a log, it knows it somewhere that I would think I could access more efficiently... :-)
Nicholas Bollweg
@bollwyvl
they are in different processes. you can talk to the API like any other client, however.
nbuntrust
@nbuntrust
This API is documented somewhere? I guess that's what I'm trying to find
siddharth99
@siddharth99
Hi, I am running into an error with cython code and the jupyter kernel ends up restarting itself.. I don't see where the actual error happens, don't see a core file and not sure how to debug further
[I 13:59:36.224 NotebookApp] KernelRestarter: restarting kernel (1/5), keep random ports kernel b4f40812-cf7d-4f97-925b-84780f946bc9 restarted
anyone has any suggestions?
1 reply
pritimanbala
@pritimanbala
hii
there
there is a problem that i am running code in the for loop of python and now I cant configure it out that how can I run my loop in the cmd of my pc