Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
    hi all
    Rich Atkinson
    Hello. I'm trying to start an ipython kernel as a standalone process, and then connect to it over zmq from another process to send snippets to execute. I'm struggling to find a clean and working example of how to do this. I've looked at jupyter-client, ipkernel and ipython code, but can't find a working example. SO has lots of examples but they're mostly pre-modern era. Many thanks!
    is there a tljh room?
    hi guys how can I download jupyter notebook in my pc
    any one plz tell me how to uninstall jupyter
    Guys I am getting below error
    Traceback (most recent call last):
    File "/usr/local/bin/jupyter", line 5, in <module>
    from jupyter_core.command import main
    ModuleNotFoundError: No module named 'jupyter_core'
    1 reply
    how to resolve it
    plz help me
    I'm currently trying to show jupyter notebook interactive visualization result in my web page. I've found example on displaying MIME result to standalong web page at JupyterLab repository( but it cannot display interactive visualization result(i.e : holoviews' one). Any hint?
    xuefeng Huang
    Hey everyone, I am setting up Jupyterhub on a K8s cluster. I have noticed that after I enable third party Oauth provider login then the basic login form disappears. I am wondering if anyone knows a way to enable them both?
    I'm getting an invalid syntax error from: lines = [line.split("\t") for line in lines if len(line.split("\t"))==2 and line.split("\t")[1]<>''] I believe <> this is incorrect I have also tried != with no luck
    Varun V Deshpande
    Hey guys, While creating a dataproc cluster from google cloud platform , I'm passing a parameter to install jupyterhub as well and I can directly access the jupyterhub from the cluster. All the notebooks that are being created are stored in the Google cloud storage. I made a change in the configuration of the jupyter hub to point to the local storage by changing this c.NotebookApp.notebook_dir =/path/to/file. Just wanted to check if there is any way to have a combination of these. Like I want to see the notebooks that are in the gcs location as well as that are present in the local storage. Kindly request you to help me with this part

    import numpy as np
    import pandas as pd
    from pandas import Series, DataFrame
    import webbrowser

    import pandas as pd

    nfl_frame = pd.read_clipboard (sep='|')

    nfl_frame = pd.read_clipboard(sep='\t')

    After opening the website I copy the data to clipboard as
    getting the output as
    First NFL Season
    Dallas Cowboys
    not reading everything copied to the clipboard
    Jason Grout
    This sounds like it may be a pandas question, not a Jupyter question?
    I'd suggest (once there is a question formulated) asking on the pandas help channels
    Nick Benik
    Hi, I am experience problems where Jupyterhub 1.2.0dev is not directing to the page specified by jupyterhub.auth.Authenticator.logout_url... auto_login seems to have some influence on this behavior. When it is turned off it shows the logout_url but does not properly display the login_url then.
    Jaffar Ali
    I cant change font size of output cells for notebook on jupyterlab
    Can someone help me in resolving this

    Is there a way to test from a running Jupyter notebook which configuration file it is using? Which configuration parameters it has?

    I am trying to do what is documented below, i.e. change the tornado settings so a file upload can work beyond 10Mb, by changing this line in

    c.NotebookApp.tornado_settings = {"websocket_max_message_size": 100 * 1024 * 1024}

    This change works locally, but doesn't work when done on Binder. How can I test that the right parameters are taken in Binder?

    1 reply
    Related question: is there a way to have a progress bar on a FileUpload widget?
    Wolf Vollprecht
    I am trying to make a jupyter server extension that is basically a Tornado WebsocketHandler
    but when executing write_message(...) it fails with There is no current event loop in thread '/listener'.
    I am wondering if someone knows a solution for that (the send_message handler is called from a Thread which is not the main thread)
    Min RK
    Try this: Get a handler on the main event loop and pass it to the thread. Then pass write_message to ioloop.call_soon_threadsafe
    Wolf Vollprecht
    @minrk thanks a lot! @maartenbreddels suggested something similar (using ioloop.add_callback(self.write_message, *args) and it seems to work!
    Dave Hirschfeld
    Does jupyter-server-proxy not do what you're after?
    when ever i try to run a python code in my jupyter notebook it is showing the kernal is busy for the longtime. My jupyter is really slow.can anyone have any suggestion on this, please guide me if possbile.
    Hi! I am looking for a way to add custom shortcuts (basically links to external pages, with an icon) to the default JupyterLab launcher. What is the best way to do it?
    Wayne's Bioinformatics Code Portal
    @mbhardwaj327 There are a lot of ways to run Jupyter notebook so you'd have to be more specific about your set-up, and you are likely better off first looking around or stackoverflow for a related example. And then if there isn't anything similar, post a question on the Jupyter Discourse Forum as it is more persistent than here.
    Zelphir Kaltstahl

    Hello, I have a question regarding the jupyter extension (not JupyterLab extension) command line interface. I have the following output:

    $ jupyter serverextension list
    config dir: /home/user/.jupyter
        jupyterlab  enabled 
        - Validating...
          jupyterlab 2.1.4 OK
        my_jupyter_extension disabled
        - Validating...
          my_jupyter_extension 0.0.0 OK
    config dir: /home/user/.cache/pypoetry/virtualenvs/variable-inspector-UiDM7D2w-py3.6/etc/jupyter
        jupyterlab  enabled 
        - Validating...
          jupyterlab 2.1.4 OK

    Now i want to remove the extension my_jupyter_extension completely from the list.

    I have tried:

    jupyter nbextension uninstall my_jupyter_extension
    No installed extension 'my_jupyter_extension' found.


    jupyter serverextension uninstall --py my_jupyter_extension
    Please supply at least one subcommand: disable, enable, list

    But the extension remains in my list! What is the proper command to remove it completely from the notebook server extensions?

    7 replies
    Zelphir Kaltstahl
    One more question: Is it possible to execute code on the "current kernel" (currently focused notebook in the frontend) using from notebook.base.handlers import APIHandler, or do I need to use Comms for that?
    40 replies
    Jitse Niesen

    Hello everybody. I have a question: How do I run the notebook server example in jupyterlab/examples/notebook/ in dark mode? Please advice me if this is not the best place for such a question.

    In case you are interested, here is some background ... I am trying to update the notebook plugin of Spyder, which is a Qt-based Python IDE that I think some of you are aware of. The spyder-notebook plugin builds on your excellent work to render notebooks in HTML and display them in Spyder; the repo is at . Currently, the plugin starts a server with jupyter notebook. However, the Jupyter Notebook server is no longer under active development (as I understand it), so I am in the process of switching the plugin to use Jupyter Lab, based on the example in jupyterlab/examples/notebook/. It seems to work okay. I am now trying to implement dark mode (the "JupyterLab Dark" theme). My idea was to write the correct configuration for dark mode to the Jupyter user settings directory before starting the server. This works for jupyter lab, and it is even possible to change the Jupyter user settings directory by setting the JUPYTER_CONFIG_DIR environment variable, which avoids overwriting the normal user settings. However, jupyterlab/examples/notebook does not seem to read the user settings as far as I can see. Additionally, I am having trouble figuring out where the settings are read in. I could not find the string JUPYTER_CONFIG_DIRanywhere in the JavaScript/TypeScript code, only in the Python module jupyter_core, so I guess the information is somehow passed from Python to TypeScript. There is a SettingsHandler in jupyterlab_server which seems relevant but I don't see where and how this is used and I'd like to have some hope that I can use this before diving further in the code.

    12 replies
    Mohamed Shalaby
    the notebook is too slow on Edge browser
    Zelphir Kaltstahl

    Regarding the topic of starting KernelClients: I found the following docs: It says, that there are keyword arguments to the KernelClient constructor, but nowhere says, what those are or explains them.

    Do you have any example anywhere, how to start a KernelClient given a kernel id (from JupyterLab front end)? That would be really helpful.

    12 replies
    Hadrien Mary
    I am trying to add a file handler into jupyter_server (the idea is to integrate And even after reading the doc I am a bit confused how can I actually test jupyter_server. jupyter server execute the API server but does not show any UI (excepted I guess). When in the same env I execute jupyter lab, it seems that jupyter_server is not used but notebook is used. Do I need to configure something to actually use jupyter_server instead of notebook?
    Dr. Muhammad Anjum
    Hi every body! How can I expand my data after number 4 , it is hidden ? Please
    1 reply

    I am new to jupyterhub and i am trying to Add multiple python kernel(2.7.x,3.6.x,3.7.x) to jupyterhub
    my default python version is 3.6.8 which is installed from python sourcefile,

    i am able to run jupyterhub with python3.
    Python path: /share/apps/platform/ai/py36/3_6_8/bin/python3

    But now i am trying to add Python 2.7.16 kernel

    my python2 installation path: /share/apps/platform/ai/py27/2_7_16/bin/python

    # jupyter-kernelspec list
    Available kernels:
    ir /root/.local/share/jupyter/kernels/ir
    python3 /share/apps/platform/ai/py36/3_6_9/share/jupyter/kernels/python3
    i tried to add python2:
    [root@master ~]# python --version 
    Python 2.7.16 
    [root@master ~]# python3 --version
    Python 3.6.9 
    # python2 -m ipykernel install 
    Installed kernelspec python2 in /root/.local/share/jupyter/kernels/python2
    [root@master ~]# jupyter-kernelspec list 
    Available kernels: 
     ir /root/.local/share/jupyter/kernels/ir 
     python3 /share/apps/platform/ai/py36/3_6_9/share/jupyter/kernels/python3 
     python2 /usr/local/share/jupyter/kernels/python2
    and when i try to check logs of jupyterhub, i am getting below error
    Jul 6 22:00:03 master jupyterhub: [I 2020-07-06 22:00:03.662 SingleUserNotebookApp restarter:110] KernelRestarter: restarting kernel (4/5), new random ports 
    Jul 6 22:00:03 master jupyterhub: /share/apps/platform/ai/py27/2_7_16/bin/python2: No module named ipykernel_launcher 
    Jul 6 22:00:06 master jupyterhub: [W 2020-07-06 22:00:06.690 SingleUserNotebookApp restarter:100] KernelRestarter: restart failed 
    Jul 6 22:00:06 master jupyterhub: [W 2020-07-06 22:00:06.691 SingleUserNotebookApp kernelmanager:135] Kernel 2997ce87-ab15-475a-b4a0-d534bf910d8f died, removing from map.

    Please guide me how to resolve python2: No module named ipykernel_launcher this.

    1 reply
    Hello, I have a suggestion regarding keyboard shortcuts in Jupyter, where can I submit this?
    Thomas A Caswell

    I'm seeing installation failures in jupyter lab that look like:

      > node /tmp/pip-req-build-j3io0ryb/jupyterlab/staging/yarn.js run build:prod
      yarn run v1.21.1
      $ ensure-max-old-space webpack --config
      (node:194127) [DEP_WEBPACK_MAIN_TEMPLATE_RENDER_MANIFEST] DeprecationWarning: MainTemplate.hooks.renderManifest is deprecated (use Compilation.hooks.renderManifest instead)
      (Use `node --trace-deprecation ...` to show where the warning was created)
      (node:194127) [DEP_WEBPACK_CHUNK_TEMPLATE_RENDER_MANIFEST] DeprecationWarning: ChunkTemplate.hooks.renderManifest is deprecated (use Compilation.hooks.renderManifest instead)
      (node:194127) [DEP_WEBPACK_MAIN_TEMPLATE_HASH_FOR_CHUNK] DeprecationWarning: MainTemplate.hooks.hashForChunk is deprecated (use JavascriptModulesPlugin.getCompilationHooks().chunkHash instead)
      (node:194127) [DEP_WEBPACK_MAIN_TEMPLATE_GET_ASSET_PATH] DeprecationWarning: MainTemplate.getAssetPath is deprecated (use Compilation.getAssetPath instead)
      (node:194127) [DEP_WEBPACK_COMPILATION_NORMAL_MODULE_LOADER_HOOK] DeprecationWarning: Compilation.hooks.normalModuleLoader was moved to NormalModule.getCompilationHooks(compilation).loader
      (node:194127) [DEP_WEBPACK_COMPILATION_ASSETS] DeprecationWarning: Compilation.assets will be frozen in future, all modifications are deprecated.
      BREAKING CHANGE: No more changes should happen to Compilation.assets after sealing the Compilation.
      Do changes to assets earlier, e. g. in Compilation.hooks.processAssets.
      Make sure to select an appropriate stage from Compilation.PROCESS_ASSETS_STAGE_*.
      (node:194127) [DEP_WEBPACK_MODULE_ID] DeprecationWarning: Use new ChunkGraph API
      (node:194127) [DEP_WEBPACK_MODULE_UPDATE_HASH] DeprecationWarning: Module.updateHash: Use new ChunkGraph API
      (node:194127) [DEP_WEBPACK_CHUNK_MODULES_ITERABLE] DeprecationWarning: Chunk.modulesIterable: Use new ChunkGraph API
      (node:194127) [DEP_WEBPACK_CHUNK_GROUP_GET_MODULE_INDEX_2] DeprecationWarning: ChunkGroup.getModuleIndex2 was renamed to getModulePostOrderIndex
       ModuleNotFoundError: Module not found: Error: Can't resolve 'buffer' in '/tmp/pip-req-build-j3io0ryb/jupyterlab/staging/node_modules/htmlparser2/lib'
       BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
       This is no longer the case. Verify if you need these module and configure a polyfill for it.
       If you want to include a polyfill, you need to install 'buffer'.

    is this a know thing or should I open an issue?

    1 reply
    Dr. Muhammad Anjum
    hi sir how to ignore negative floating values in a data set ?