Giter Club home page Giter Club logo

jupyter_server_terminals's People

Contributors

blink1073 avatar danielzgtg avatar dcsaba89 avatar dependabot[bot] avatar github-actions[bot] avatar jasonweill avatar krassowski avatar pre-commit-ci[bot] avatar wh1isper avatar zhanba avatar zsailer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jupyter_server_terminals's Issues

Terminal not working in version > 0.4.4,

Description

Terminals not working when using version 0.5.0 or 0.5.1, after downgrading to 0.4.4 it works fine.
below is the error.
TypeError: object NoneType can't be used in 'await' expression

Reproduce

jupyter --versoin screenshot below. should be able to reproduce with jupyter-servier-terminals > 0.4.4
Selected Jupyter core packages...
IPython : 8.4.0
ipykernel : 6.28.0
ipywidgets : not installed
jupyter_client : 8.6.0
jupyter_core : 5.6.0
jupyter_server : 2.12.1
jupyterlab : 4.0.9
nbclient : 0.8.0
nbconvert : 7.13.1
nbformat : 5.9.2
notebook : not installed
qtconsole : not installed
traitlets : 5.14.0

Expected behavior

Termianls should work, without any issues.

Context

  • Operating System and version: RHEL 7.9
  • Browser and version: Chrome
  • Jupyter Server version:
  • Selected Jupyter core packages...
    IPython : 8.4.0
    ipykernel : 6.28.0
    ipywidgets : not installed
    jupyter_client : 8.6.0
    jupyter_core : 5.6.0
    jupyter_server : 2.12.1
    jupyterlab : 4.0.9
    nbclient : 0.8.0
    nbconvert : 7.13.1
    nbformat : 5.9.2
    notebook : not installed
    qtconsole : not installed
    traitlets : 5.14.0

Unable to Disable Terminal through 'jupyter_server_config.py`

Description

The jupyter server terminal is not disabled on jupyterhub after setting the jupyter_server_config.py like so:

c.ServerApp.terminals_enabled = False

I can confirm that the configuration is acknowledged by the jupyter server by executing the following command jupyter server --show-config which outputs:

...
Loaded config files:
  /Users/rprater/.jupyter/jupyter_server_config.py

ServerApp
  .jpserver_extensions = <LazyConfigValue value={'jupyter_lsp': True, 'jupyter_server_terminals': True, 'jupyterlab': True, 'nbclassic': True, 'notebook_shim': True}>
  .terminals_enabled = False # <--- acknowledged 

Reproduce

python -m venv venv
source venv/bin/activate
pip install jupyterhub jupyterlab notebook
jupyter server --generate-config
# Edit jupyter_server_config file as described above
jupyterhub

Context

I can confirm this issue does not occur if I pin the jupyter_server package to less than version 2.

Looking at the source code this may make sense, the value gets hard coded here.

Named terminal support in the REST API

Problem

When creating terminals via the REST api (i.e. a POST request to /api/terminals) the terminal name/id is an incrementing integer. For my use case I would like to control the names/ids of the terminals for organizational purposes.

Proposed Solution

I believe the solution is would be an easy update to the /api/terminals POST request by adding the ability to override the terminal name/id in the body of the request. Alternatively you could provide a /api/terminals/{terminal id} POST endpoint for creating named terminals.

Remove hard-coded dependency

Description

We weren't able to publish 0.2.0

 WARNING  Error during upload. Retry with the --verbose option for more details.
ERROR    HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/
         Invalid value for requires_dist. Error: Can't have direct dependency:
         "jupyter-server[test] @ git+https://github.com/Zsailer/jupyter_server.g
         it@jupyter_server_terminals ; extra == 'test'"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.