Skip to content

JesseTsing/jchart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JChart 《J线正字图/J-chart:innovation of technical analysis》

this is an ipywidgets/ipympl web application

serve using voila

$ pip install voila
$ voila \
--MappingKernelManager.cull_interval=60 \
--MappingKernelManager.cull_idle_timeout=120 \
--no-browser --port=50009 --base_url=/jchart/ \
--VoilaConfiguration.file_allowlist="['.*']" \
jchart_wdg.ipynb &
          

voila's apache server config.

  1. serve on your own apache server as a proxy, with user-defined entry point

edit this file : {apache_root}/conf/extra/httpd-vhosts.conf

<VirtualHost *:8080>

  <LocationMatch  "/jchart/">
      RewriteEngine on
      RewriteCond %{REQUEST_URI} /jchart/api/kernels/
      RewriteRule .*/jchart/(.*) "ws://127.0.0.1:50009/jchart/$1" [P,L]
      ProxyPreserveHost On
      ProxyPass http://127.0.0.1:50009/jchart/
      ProxyPassReverse  http://127.0.0.1:50009/jchart/
   </LocationMatch>

</VirtualHost>

  1. restart apache
$ sudo apachectl -k restart

play with Jchart

jchart_step1 jchart_step2 jchart_step3 jchart_step4 jchart_step5 jchart_step6

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published