Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 26 20:28
    Reapor-Yurnero commented #2432
  • May 26 08:26
    lmingzhi commented #625
  • May 26 08:14
    lmingzhi commented #625
  • May 26 01:16
    adamjstewart opened #6435
  • May 26 01:16
    adamjstewart labeled #6435
  • May 24 00:18
    github-actions[bot] locked #6203
  • May 24 00:18
    github-actions[bot] labeled #6203
  • May 23 20:51
    github-actions[bot] labeled #6434
  • May 23 20:50
    github-actions[bot] commented #6434
  • May 23 20:50

    pre-commit-ci[bot] on pre-commit-ci-update-config

    [pre-commit.ci] pre-commit auto… (compare)

  • May 23 20:50
    pre-commit-ci[bot] opened #6434
  • May 23 07:45
    Step-by-step1 commented #3311
  • May 22 18:17
    lgoudas commented #5024
  • May 22 17:57
    lgoudas commented #5024
  • May 22 16:42
    tyroCodist commented #5024
  • May 22 08:28
    trungleduc synchronize #6433
  • May 22 03:23
    lgoudas commented #5024
  • May 22 03:22
    lgoudas commented #5024
  • May 21 22:33
    trungleduc synchronize #6433
  • May 21 22:33
    trungleduc ready_for_review #6433
boris
@pkarpesis:chat.avlikos.gr
[m]

so now this works:

to_accordion(some_content,'some_title')

However having this in a for loop does not output anything. For example:

for i in range(3):
    to_accordion(i,i)
Do I have to output this in a different way in Jupyter maybe?
Min RK
@minrk
You need to call display on the result
boris
@pkarpesis:chat.avlikos.gr
[m]
Ah you are right!!
let me try
🎉
great help here @minrk ❤️
boris
@pkarpesis:chat.avlikos.gr
[m]
please forgive my ignorance but if I want to re-run a cell and all the cells below it , I mark all the cells with Shift + End (starting from the cell I want to re-run) and hit ctrl+Enter . There must a better way right ?
Michael Jahn
@aktsizr:matrix.org
[m]
hello. i'm trying to persist some value programmatically directly into the notebook. is this somehow possible? using %store et. al. wouldn't work as this is using the global namespace of the kernel, i guess. my goal is to carry that notebook around and be able to execute it w/ the serialized (once agreed upon and saved) parameters
thought there should be some programmable way to add something to the nb's metadata using get_ipython() or something
Min RK
@minrk
The kernel doesn't generally have access to any information about the document. The simplest way to 'store' such things as input variables is as assignments in a code cell
See some tools like nbparametrize that attempt to automate this process
epifanio
@epifanio

Hi, I am running a jupyter server via conda, on a system that has also other jupyter installations.
How can I avoid my conda-jupyter to pick-up the system kernels ?
jupyter path shows me:

massimods@r740-5hdn2s2-ag-gcompute:~$ which jupyter
/modules/centos7/user-apps/fou-fd/miniconda-mds/envs/rapids-0.19/bin/jupyter
massimods@r740-5hdn2s2-ag-gcompute:~$ jupyter --paths
config:
    /home/massimods/.jupyter
    /modules/centos7/user-apps/fou-fd/miniconda-mds/envs/rapids-0.19/etc/jupyter
    /usr/local/etc/jupyter
    /etc/jupyter
data:
    /home/massimods/.local/share/jupyter
    /modules/centos7/user-apps/fou-fd/miniconda-mds/envs/rapids-0.19/share/jupyter
    /usr/local/share/jupyter
    /usr/share/jupyter
runtime:
    /home/massimods/.local/share/jupyter/runtime

I'd like to avoid to load all the system directory: /usr/local and /usr/share
Is it something that I can tune in the jupyter configuration?

massimods@r740-5hdn2s2-ag-gcompute:~$ jupyter kernelspec list
Available kernels:
  rapids     /home/massimods/.local/share/jupyter/kernels/rapids
  python3    /modules/centos7/user-apps/fou-fd/miniconda-mds/envs/rapids-0.19/share/jupyter/kernels/python3
  bash       /usr/local/share/jupyter/kernels/bash
  ir         /usr/local/share/jupyter/kernels/ir
  python2    /usr/local/share/jupyter/kernels/python2
epifanio
@epifanio
boris
@pkarpesis:chat.avlikos.gr
[m]
Can someone help me enable horizontal scrolls to this :
from IPython.display import display
from ipywidgets import Output, VBox, Accordion, Layout

layout = Layout(border='solid blue')


def to_accordion(content, title):
    out = Output()
    accordion = Accordion([out], selected_index=None, layout=layout)
    accordion.set_title(0, title)
    with out:
        display(content)
    return VBox([accordion])


if __name__ == '__main__':
    to_accordion('test_content', 'test_title')
layout = Layout(border='solid blue', overflow_x='auto') didn't help
Matt Riedemann
@mriedem
Anyone know if this is a place to ask questions about nbconvert or is there a different place for that (in gitter)?
1 reply
Martin K. Scherer
@marscher
Is the rich display system not implemented for JSON rendering in notebook, but only in jupyterlab?
Here is the full description jupyter/notebook#5446
Martin K. Scherer
@marscher
OK, the displaying is done by this extension, which is only available for jupyterlab: https://github.com/jupyterlab/jupyterlab/tree/master/packages/json-extension Do you think this could be ported for jupyter notebook as well?
boris
@pkarpesis:chat.avlikos.gr
[m]
hello! when installing with jupyter labextension install is there a way to define a proxy ?
Sylvain Corlay
@SylvainCorlay
"How we made Jupyter notebooks collaborative with YJS" by Kevin Jahns.
https://twitter.com/kevin_jahns/status/1403338208927227904
Inês Gaspar
@inesrgaspar:matrix.org
[m]
hello guys, i cannot use jupyter because my kernel keeps dying non stop... do you know what it can be? i have been searching on online pages for days now...
Kevin Bates
@kevin-bates
Hmm - this is usually an indication that your kernel can’t complete its startup. However, we should be seeing the restart counts incremented, where after 5 attempts it gives up. Given the restart count is not incrementing is this continuing until the server is stopped?
Can you add DEBUG logging when starting the server (e.g., jupyter notebook —debug) and see if that produces any helpful information? In particular, the logging surrounding the command used to launch the kernel.
Inês Gaspar
@inesrgaspar:matrix.org
[m]
Hi Kevin, thanks! I've done that:
Kevin Bates
@kevin-bates
Have you tried taking the pieces of the Starting kernel array and invoking them from the command line? I suspect that might provide the reason ipykernel_launcher isn’t remaining running?
inesrgaspar
@inesrgaspar:matrix.org
[m]
How should I do that? Sorry, I am a beginner!
Kevin Bates
@kevin-bates
Since you provided an image rather than a textual representation, its a little cumbersome, but you’d basically invoke something like this: "C:\Program Files\python.exe" -m ipykernel_launcher -f "C:\Users\Ines Gaspar\AppData\…\kernel_….json” with the space-separated paths in double quotes (if I recall from my WIndows days)
Inês Gaspar
@inesrgaspar:matrix.org
[m]

Hello again...

"NOTE: When using the ipython kernel entry point, Ctrl-C will not work.
To exit, you will have to explicitly quit this process, by either sending
"quit" from a client, or using Ctrl-\ in UNIX-like environments
To read more about this, see ipython/ipython#2049
To connect another client to this kernel, use:
--existing C:\Users\Ines Gaspar\AppData\Roaming\jupyter\runtime\kernel-87c47cb4-88f5-4484-a584-7910c0e610bb.json"

Kevin Bates
@kevin-bates
ok. looks like the kernel can start. You’ll want to terminate this using ctrl-\.
Since this is proving difficult and you’re a beginner, troubleshooting can be a bit like groping in the dark. As such, I suggest we move this more to direct DM and can circle back with questions or a resolution later.
If others have a good way to troubleshoot these kinds of issues, it would be helpful. We should also determine if the kernel process is dying on first execution or not. Before moving to DM, are you able to attempt the execution of any cells?
Martin K. Scherer
@marscher
Hi, is there a way to determine the current port from within the notebook?
Martin K. Scherer
@marscher
port = os.environ.get('SERVER_PORT', '')
dcompoze
@dcompoze
Hello,
Does anyone know if it's possible to extract all attachments from a jupyter notebook and save them as distinct files?
When I try converting to markdown or html it outputs the links as attachment:foo.png instead of exporting the image
sanjay sharma
@sanjubaba1984_twitter
hello,
How we can download the output like we have options with databricks notebooks? is there any option in jupyter notebook to download the output??
Gilbert Brault
@gbrault

@dcompoze you may use nbconvert to export a notebook to html and then use beautifulsoup to edit the html file and get the attachments

os.system(f'jupyter nbconvert {report}.ipynb --no-input --to html')

I used that to create an automated outline of the notebook getting all the a html tags with beautifulsoup .
Open the html file to see where the attachements are encoded

sanjay sharma
@sanjubaba1984_twitter

hello,
How we can download the output like we have options with databricks notebooks? is there any option in jupyter notebook to download the output??

Like we have options to download the output in csv etc., is that same options present in jupyter notebook from where we can download the output?

Anyone please?

Hong Wu
@5macro
Hi all, just wonder is there any way that could let me get the notification for cell completion, I tried https://github.com/ShopRunner/jupyter-notify, but got a Javascript Error: $ is not define and had no idea how to resolve this...
and the jupyter was set up in a docker
Siba Prasad Choudhury
@SibaPrasadTech
Hi all. I am trying to create a notebook extension that will change the header of the notebook. That means it will show some pretty colors, some Icon, a user name and some other buttons etc. Now this extension needs to have both server extension and front end extension. I know how to create a server extension in Jupyter as there are enough documentation available for it. So assume that i have created a new handler at "/hello". Now how do I send GET request to that endpoint from a notebook extension(from the main.js basically) ?
Wayne's Bioinformatics Code Portal
@fomightez
Anyone got a fix or good workaround for the drop-down arrow for collapsible sections in markdown made by details/summary tags no longer working in classic notebook interface? (It works find in same browser in current JupyterLab.) See here if you have a solution? I think I found and linked to the filed issue jupyter/notebook#2223 that is related to this; however, feel free to point out if there is indeed a better one. Since this works in JupyterLab now and the underlying workings will soon be much more the same in notebook 7.0, maybe that is how it will be sorted?
Lantao Yu
@complexfilter
Hi, does anyone how how to suppress the outputs from pybind's c++ code in a jupyter notebook's cell?
%%capture does not work.
Min RK
@minrk
wurlitzer might do what you need.
Sylvain Corlay
@SylvainCorlay
Congrats to the new cohort of Jupyter distinguished contributors: https://twitter.com/JohanMabille/status/1504132053637419010
Eric Charles
@echarles
Notebook 6.4.11 is released. You can install it with pip install notebook==6.4.11 --upgrade. The release notes and artifacts can be found on https://github.com/jupyter/notebook/releases/tag/v6.4.11. Thx to all who contributed to this.
Kevin Bates
@kevin-bates

Thx to all who contributed to this.

Yes, thank you to all. And special thanks to @echarles for driving!

Jeremy Tuloup
@jtpio

Hey folks,
New pre-releases of Notebook v7 keep coming in, with 7.0.0a3 just released today.

There are a couple of user-facing changes, so feedback is very welcome.
Don't hesitate to open a new issue on the notebook repo (https://github.com/jupyter/notebook), or a new topic on the Jupyter Discourse (https://discourse.jupyter.org) to discuss.
Thanks!