jupyterlab heroku扩展的服务器扩展

jupyterlab-heroku的Python项目详细描述


朱庇特实验室Heroku

npmpypi

jupyterlab扩展,用于管理应用程序并将其部署到heroku。

扩展支持voila仪表板的单击式部署

screencast

要求

创建Heroku帐户

如果您已经有一个heroku帐户,可以跳到下一节

您可以按照以下说明创建新的Heroku帐户: https://signup.heroku.com/

安装Heroku客户端

您需要在计算机上安装heroku客户端才能部署应用程序。要设置它: https://devcenter.heroku.com/articles/getting-started-with-python#set-up

安装完成后,使用以下命令测试安装:

$ heroku --version
heroku/7.26.2 linux-x64 node-v11.14.0

登录Heroku

登录Heroku有不同的方式:

  1. heroku login将打开一个新的浏览器选项卡以使用电子邮件和密码登录
  2. 使用api标记创建一个~/.netrc文件(有关详细信息,请参见the documentation
  3. 设置HEROKU_API_KEY环境变量

测试身份验证:heroku apps

其他依赖项

此扩展还需要:

  • 朱庇特实验室1.0
  • git

安装

pip install jupyterlab-heroku
jupyter serverextension enable --sys-prefix --py jupyterlab_heroku
jupyter labextension install jupyterlab-heroku

由于heroku使用git来部署应用程序,因此还建议为jupyterlab安装jupyterlab-git扩展:

pip install jupyterlab-git
jupyter serverextension enable --sys-prefix --py jupyterlab_git
jupyter labextension install @jupyterlab/git

贡献

安装

# Clone the repo to your local environment# Move to jupyterlab-heroku directory# Create a new conda environment
conda create -n jupyterlab-heroku -c conda-forge jupyterlab nodejs

# Install the server extension
python -m pip install -e .
jupyter serverextension enable --sys-prefix --py jupyterlab_heroku

# Install dependencies
jlpm

# Build Typescript source
jlpm build

# Link your development version of the extension with JupyterLab
jupyter labextension link .

# Rebuild Typescript source after making changes
jlpm build

# Rebuild JupyterLab after making any changes
jupyter lab build

您可以监视源目录并在监视模式下运行JupyterLab,以监视扩展源中的更改并自动重新生成扩展和应用程序

# Watch the source directory in another terminal tab
jlpm watch

# Run jupyterlab in watch mode in one terminal tab
jupyter lab --watch

卸载

jupyter labextension uninstall jupyterlab-heroku

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java为什么只为字符数组重载println方法,而不为字符串、整数等其他数组重载?   java将快速线程返回到池中,而不是等待慢速线程   创建jar文件时java SwingWorker不工作   java如何将依赖注入RabbitListener   java如何在gradle任务中通过scp复制目录?   java在MySql数据库中创建表时,遇到NullPointerException   java HTTP Status 500 Servlet执行引发异常   在JAVA中对arraylist使用继承时出错   java PowerMockito未完成存根异常   如果没有错误/警告增加到某个极限,java是否停止在eclipse中构建项目或使用maven?   java Robolectric如何测试DateFormat。getBestDateTimePattern()   google云平台GCP数据存储Java API,构建一个空值实体   VerifyListener和FocusListener之间的java冲突   安卓是否可以在Java中的另一个方法内部强制调用一个方法?   JavaWindows7、JDK1.8、SpringBoot应用程序JAR在方法安全性方面占用了大量时间。getProviders()返回   Bean提供程序的java错误消息   java Slick动画每帧必须有一个持续时间   java无法在Trie中设置isLeaf标志   java为什么JVM不能创建包含main方法的类的对象,以便从该类访问main方法,如果它具有该类的名称?   java Apache Camel+CXF端点身份验证